diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/duecredit/default.nix | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/duecredit/default.nix b/pkgs/development/python-modules/duecredit/default.nix index 582d572a44203..b9f3b94ec513d 100644 --- a/pkgs/development/python-modules/duecredit/default.nix +++ b/pkgs/development/python-modules/duecredit/default.nix @@ -6,25 +6,39 @@ , pytestCheckHook , vcrpy , citeproc-py +, looseversion , requests }: buildPythonPackage rec { pname = "duecredit"; - version = "0.9.3"; + version = "0.10.1"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-+DeOqQ0R+XUlkuSHySFj2oDZqf85mT64PAi/LtTso3I="; + hash = "sha256-IQgrmEclF/USrTjn5A0BbJ5GHgXh1R/KPJx4K4FuUuY="; }; - nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ citeproc-py requests ]; + postPatch = '' + substituteInPlace tox.ini \ + --replace-fail "--cov=duecredit" "" \ + --replace-fail "--cov-config=tox.ini" "" + ''; - nativeCheckInputs = [ pytestCheckHook vcrpy ]; + nativeBuildInputs = [ setuptools ]; + propagatedBuildInputs = [ + citeproc-py + looseversion + requests + ]; + + nativeCheckInputs = [ + pytestCheckHook + vcrpy + ]; disabledTests = [ "test_import_doi" ]; # tries to access network preCheck = '' @@ -33,12 +47,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "duecredit" ]; - meta = with lib; { + meta = { homepage = "https://github.com/duecredit/duecredit"; description = "Simple framework to embed references in code"; mainProgram = "duecredit"; changelog = "https://github.com/duecredit/duecredit/releases/tag/${version}"; - license = licenses.bsd2; - maintainers = with maintainers; [ bcdarwin ]; + license = lib.licenses.bsd2; + maintainers = [ lib.maintainers.bcdarwin ]; }; } |