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