diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-07-23 09:26:00 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-07-23 09:26:00 +0000 |
commit | ab63e0bb8dcf2b1bf8d4a26ed360af777b8f241d (patch) | |
tree | 504b28a058661f6c1cbb7d3f580020e50367ca7f /nixpkgs/pkgs/development/python-modules/dill/default.nix | |
parent | 55cc63c079f49e81d695a25bc2f5b3902f2bd290 (diff) | |
parent | b09661d41fb93562fd53f31574dbf781b130ac44 (diff) | |
download | nixlib-ab63e0bb8dcf2b1bf8d4a26ed360af777b8f241d.tar nixlib-ab63e0bb8dcf2b1bf8d4a26ed360af777b8f241d.tar.gz nixlib-ab63e0bb8dcf2b1bf8d4a26ed360af777b8f241d.tar.bz2 nixlib-ab63e0bb8dcf2b1bf8d4a26ed360af777b8f241d.tar.lz nixlib-ab63e0bb8dcf2b1bf8d4a26ed360af777b8f241d.tar.xz nixlib-ab63e0bb8dcf2b1bf8d4a26ed360af777b8f241d.tar.zst nixlib-ab63e0bb8dcf2b1bf8d4a26ed360af777b8f241d.zip |
Merge commit 'b09661d41fb93562fd53f31574dbf781b130ac44'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/dill/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/dill/default.nix | 50 |
1 files changed, 30 insertions, 20 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/dill/default.nix b/nixpkgs/pkgs/development/python-modules/dill/default.nix index 0983805780fa..ac5741742781 100644 --- a/nixpkgs/pkgs/development/python-modules/dill/default.nix +++ b/nixpkgs/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; [ ]; }; } |