Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 git, 6 lxml, 7 rnc2rng, 8 pytestCheckHook, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "citeproc-py"; 14 version = "0.6.0"; 15 pyproject = true; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-2eOiJPk2/i5QM7XZ/9rKt2nO22HZbE4M8vC0iPHSS04="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 buildInputs = [ rnc2rng ]; 25 26 dependencies = [ lxml ]; 27 28 nativeCheckInputs = [ 29 git 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ "citeproc" ]; 34 35 meta = { 36 homepage = "https://github.com/citeproc-py/citeproc-py"; 37 description = "Citation Style Language (CSL) parser for Python"; 38 mainProgram = "csl_unsorted"; 39 license = lib.licenses.bsd2; 40 maintainers = with lib.maintainers; [ bcdarwin ]; 41 }; 42}