1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pyparsing
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "bibtexparser";
11 version = "1.4.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "sciunto-org";
18 repo = "python-${pname}";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-YMkLSx7L2srLINZa6Ec0rPoxE2SdMv6CnI4BpHgHuzM=";
21 };
22
23 propagatedBuildInputs = [
24 pyparsing
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "bibtexparser"
33 ];
34
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 };
41}