about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2024-05-19 12:36:23 +0200
committerGitHub <noreply@github.com>2024-05-19 12:36:23 +0200
commitcbd3c9ff45d48076f87d01c82cb288f9a434f517 (patch)
treeaba9e60da1b9d2ccfeda245607297c518b0a1b7a /pkgs
parent9b453d8e5b34598a5fa5a194bd6f8d4b45968d32 (diff)
parentfc5e886209665b23bd7c5cc2a30068fc09d41a32 (diff)
Merge pull request #312759 from bcdarwin/python3-duecredit-update
python311Packages.duecredit: 0.9.3 -> 0.10.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/duecredit/default.nix30
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 ];
   };
 }