2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
git,
|
|
|
|
lxml,
|
|
|
|
rnc2rng,
|
2024-07-27 06:49:29 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
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-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-2eOiJPk2/i5QM7XZ/9rKt2nO22HZbE4M8vC0iPHSS04=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
buildInputs = [ rnc2rng ];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [ lxml ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
git
|
2024-07-27 06:49:29 +00:00
|
|
|
pytestCheckHook
|
2024-06-05 15:53:02 +00:00
|
|
|
];
|
2024-07-27 06:49:29 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
pythonImportsCheck = [ "citeproc" ];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/citeproc-py/citeproc-py";
|
2020-06-18 07:06:33 +00:00
|
|
|
description = "Citation Style Language (CSL) parser for Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "csl_unsorted";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
}
|