nixpkgs/pkgs/development/python-modules/bibtexparser/default.nix
Theodore Ni 8f1d59e2c5
python310Packages.bibtexparser: clean up python 2 dependencies (#201457)
Latest version no longer depends on unittest2 and future packages, so we
can clean them up.
2022-11-16 02:21:38 -05:00

42 lines
804 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pyparsing
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "bibtexparser";
version = "1.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "sciunto-org";
repo = "python-${pname}";
rev = "refs/tags/v${version}";
hash = "sha256-dP3ETzgVPI4NsxFI6Hv+nUInrjF+I1FwdqmeAetzL38=";
};
propagatedBuildInputs = [
pyparsing
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"bibtexparser"
];
meta = with lib; {
description = "Bibtex parser for Python";
homepage = "https://github.com/sciunto-org/python-bibtexparser";
license = with licenses; [ lgpl3Only /* or */ bsd3 ];
maintainers = with maintainers; [ fridh ];
};
}