1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 nose,
6 git,
7 lxml,
8 rnc2rng,
9}:
10
11buildPythonPackage rec {
12 pname = "citeproc-py";
13 version = "0.6.0";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "d9e3a224f936fe2e5033b5d9ffdacab769cedb61d96c4e0cf2f0b488f1d24b4e";
19 };
20
21 buildInputs = [ rnc2rng ];
22
23 propagatedBuildInputs = [ lxml ];
24
25 nativeCheckInputs = [
26 nose
27 git
28 ];
29 checkPhase = "nosetests tests";
30 doCheck = false; # seems to want a Git repository, but fetchgit with leaveDotGit also fails
31 pythonImportsCheck = [ "citeproc" ];
32
33 meta = with lib; {
34 homepage = "https://github.com/brechtm/citeproc-py";
35 description = "Citation Style Language (CSL) parser for Python";
36 mainProgram = "csl_unsorted";
37 license = licenses.bsd2;
38 maintainers = with maintainers; [ bcdarwin ];
39 };
40}