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.6.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "d9e3a224f936fe2e5033b5d9ffdacab769cedb61d96c4e0cf2f0b488f1d24b4e"; 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}