nixpkgs/pkgs/development/python-modules/bibtexparser/default.nix

35 lines
701 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyparsing,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "bibtexparser";
version = "1.4.4";
format = "setuptools";
src = fetchFromGitHub {
owner = "sciunto-org";
repo = "python-${pname}";
tag = "v${version}";
hash = "sha256-9zLJZAk2IBYTL7lACh6erY7A44XFZGJCr8dcpYlwKRI=";
};
propagatedBuildInputs = [ pyparsing ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "bibtexparser" ];
meta = {
description = "Bibtex parser for Python";
homepage = "https://github.com/sciunto-org/python-bibtexparser";
license = with lib.licenses; [
lgpl3Only # or
bsd3
];
};
}