2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
nose,
|
|
|
|
git,
|
|
|
|
lxml,
|
|
|
|
rnc2rng,
|
2020-06-18 07:06:33 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "citeproc-py";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.6.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "d9e3a224f936fe2e5033b5d9ffdacab769cedb61d96c4e0cf2f0b488f1d24b4e";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ rnc2rng ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ lxml ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
nose
|
|
|
|
git
|
|
|
|
];
|
2020-06-18 07:06:33 +00:00
|
|
|
checkPhase = "nosetests tests";
|
2024-06-05 15:53:02 +00:00
|
|
|
doCheck = false; # seems to want a Git repository, but fetchgit with leaveDotGit also fails
|
2020-06-18 07:06:33 +00:00
|
|
|
pythonImportsCheck = [ "citeproc" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/brechtm/citeproc-py";
|
|
|
|
description = "Citation Style Language (CSL) parser for Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "csl_unsorted";
|
2020-06-18 07:06:33 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|