mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
39 lines
765 B
Nix
39 lines
765 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pyparsing,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bibtexparser";
|
|
version = "1.4.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sciunto-org";
|
|
repo = "python-${pname}";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-YMkLSx7L2srLINZa6Ec0rPoxE2SdMv6CnI4BpHgHuzM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pyparsing ];
|
|
|
|
nativeCheckInputs = [ 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
|
|
];
|
|
};
|
|
}
|