1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 git,
6 lxml,
7 rnc2rng,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "citeproc-py";
14 version = "0.9.0";
15 pyproject = true;
16
17 src = fetchPypi {
18 pname = "citeproc_py";
19 inherit version;
20 hash = "sha256-WHgdilY+h8p8zrQ9CL6soQ3N+fPPd93zsXiUBx7cJ8g=";
21 };
22
23 build-system = [ setuptools ];
24
25 buildInputs = [ rnc2rng ];
26
27 dependencies = [ lxml ];
28
29 nativeCheckInputs = [
30 git
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [ "citeproc" ];
35
36 meta = {
37 homepage = "https://github.com/citeproc-py/citeproc-py";
38 description = "Citation Style Language (CSL) parser for Python";
39 mainProgram = "csl_unsorted";
40 license = lib.licenses.bsd2;
41 maintainers = with lib.maintainers; [ bcdarwin ];
42 };
43}