2020-06-09 22:08:55 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, git
|
|
|
|
, lxml
|
|
|
|
, rnc2rng
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "citeproc-py";
|
2021-06-18 23:47:11 +02:00
|
|
|
version = "0.6.0";
|
2020-06-09 22:08:55 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 23:47:11 +02:00
|
|
|
sha256 = "d9e3a224f936fe2e5033b5d9ffdacab769cedb61d96c4e0cf2f0b488f1d24b4e";
|
2020-06-09 22:08:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ rnc2rng ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ lxml ];
|
|
|
|
|
|
|
|
checkInputs = [ nose git ];
|
|
|
|
checkPhase = "nosetests tests";
|
|
|
|
doCheck = false; # seems to want a Git repository, but fetchgit with leaveDotGit also fails
|
|
|
|
pythonImportsCheck = [ "citeproc" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/brechtm/citeproc-py";
|
|
|
|
description = "Citation Style Language (CSL) parser for Python";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|