summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-07-15 14:35:15 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-07-15 14:35:15 +0200
commit1bec00a411831204ccc0c4f238ffa4ea3e0ff8e8 (patch)
treef23fc4fa2ccc7f1774e84b2912ffdd317b471f4d
parenta143a6dd34cd72fe24962988c7eccb97b1173fac (diff)
downloadnixpkgs-1bec00a411831204ccc0c4f238ffa4ea3e0ff8e8.tar
nixpkgs-1bec00a411831204ccc0c4f238ffa4ea3e0ff8e8.tar.gz
nixpkgs-1bec00a411831204ccc0c4f238ffa4ea3e0ff8e8.tar.bz2
nixpkgs-1bec00a411831204ccc0c4f238ffa4ea3e0ff8e8.tar.lz
nixpkgs-1bec00a411831204ccc0c4f238ffa4ea3e0ff8e8.tar.xz
nixpkgs-1bec00a411831204ccc0c4f238ffa4ea3e0ff8e8.tar.zst
nixpkgs-1bec00a411831204ccc0c4f238ffa4ea3e0ff8e8.zip
python3Packages.dill: 0.3.1.1 -> 0.3.4
-rw-r--r--pkgs/development/python-modules/dill/default.nix50
1 files changed, 30 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/dill/default.nix b/pkgs/development/python-modules/dill/default.nix
index 0983805780f..ac574174278 100644
--- a/pkgs/development/python-modules/dill/default.nix
+++ b/pkgs/development/python-modules/dill/default.nix
@@ -1,37 +1,47 @@
 { lib
 , buildPythonPackage
-, fetchPypi
+, fetchFromGitHub
 , isPy27
-, nose
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
   pname = "dill";
-  version = "0.3.1.1";
+  version = "0.3.4";
+  doCheck = !isPy27;
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "42d8ef819367516592a825746a18073ced42ca169ab1f5f4044134703e7a049c";
+  src = fetchFromGitHub {
+    owner = "uqfoundation";
+    repo = pname;
+    rev = "${pname}-${version}";
+    sha256 = "0x702gh50wb3n820p2p9w49cn4a354y207pllwc7snfxprv6hypm";
   };
 
-  # python2 can't import a test fixture
-  doCheck = !isPy27;
-  checkInputs = [ nose ];
-  checkPhase = ''
-    PYTHONPATH=$PWD/tests:$PYTHONPATH
-    nosetests \
-      --ignore-files="test_classdef" \
-      --ignore-files="test_objects" \
-      --ignore-files="test_selected" \
-      --exclude="test_the_rest" \
-      --exclude="test_importable"
-  '';
+  checkInputs = [
+    pytestCheckHook
+  ];
+
   # Tests seem to fail because of import pathing and referencing items/classes in modules.
   # Seems to be a Nix/pathing related issue, not the codebase, so disabling failing tests.
+  disabledTestPaths = [
+    "tests/test_diff.py"
+    "tests/test_module.py"
+    "tests/test_objects.py"
+  ];
+
+  disabledTests = [
+    "test_class_objects"
+    "test_method_decorator"
+    "test_importable"
+    "test_the_rest"
+  ];
+
+  pythonImportsCheck = [ "dill" ];
 
-  meta = {
+  meta = with lib; {
     description = "Serialize all of python (almost)";
     homepage = "https://github.com/uqfoundation/dill/";
-    license = lib.licenses.bsd3;
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ ];
   };
 }