ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / bibtexparser / default.nix
blob835ee405a2a13ee16e3a99da1c778cd42028ed5d
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , future
5 , pyparsing
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "bibtexparser";
12   version = "1.4.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "sciunto-org";
19     repo = "python-${pname}";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-dP3ETzgVPI4NsxFI6Hv+nUInrjF+I1FwdqmeAetzL38=";
22   };
24   propagatedBuildInputs = [
25     future
26     pyparsing
27   ];
29   checkInputs = [
30     pytestCheckHook
31   ];
33   postPatch = ''
34     # https://github.com/sciunto-org/python-bibtexparser/pull/259
35     substituteInPlace bibtexparser/tests/test_crossref_resolving.py \
36       --replace "import unittest2 as unittest" "import unittest"
37   '';
39   pythonImportsCheck = [
40     "bibtexparser"
41   ];
43   meta = with lib; {
44     description = "Bibtex parser for Python";
45     homepage = "https://github.com/sciunto-org/python-bibtexparser";
46     license = with licenses; [ lgpl3Only /* or */ bsd3 ];
47     maintainers = with maintainers; [ fridh ];
48   };