Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / bibtexparser / default.nix
blobaef733f93878717ab6af8ceb7cc0415e17d4e840
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pyparsing
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "bibtexparser";
11   version = "1.4.1";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "sciunto-org";
18     repo = "python-${pname}";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-YMkLSx7L2srLINZa6Ec0rPoxE2SdMv6CnI4BpHgHuzM=";
21   };
23   propagatedBuildInputs = [
24     pyparsing
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [
32     "bibtexparser"
33   ];
35   meta = with lib; {
36     description = "Bibtex parser for Python";
37     homepage = "https://github.com/sciunto-org/python-bibtexparser";
38     license = with licenses; [ lgpl3Only /* or */ bsd3 ];
39     maintainers = with maintainers; [ fridh ];
40   };