1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyparsing,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "bibtexparser";
12 version = "1.4.3";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "sciunto-org";
19 repo = "python-${pname}";
20 tag = "v${version}";
21 hash = "sha256-9m+7RbeJMJssviyIezPrSLMMGcQTHYaOFQwLhnu04Es=";
22 };
23
24 propagatedBuildInputs = [ pyparsing ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "bibtexparser" ];
29
30 meta = with lib; {
31 description = "Bibtex parser for Python";
32 homepage = "https://github.com/sciunto-org/python-bibtexparser";
33 license = with licenses; [
34 lgpl3Only # or
35 bsd3
36 ];
37 };
38}