02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
36 lines
809 B
Nix
36 lines
809 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, git
|
|
, lxml
|
|
, rnc2rng
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "citeproc-py";
|
|
version = "0.6.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "d9e3a224f936fe2e5033b5d9ffdacab769cedb61d96c4e0cf2f0b488f1d24b4e";
|
|
};
|
|
|
|
buildInputs = [ rnc2rng ];
|
|
|
|
propagatedBuildInputs = [ lxml ];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|