python3Packages.dill: 0.3.1.1 -> 0.3.4

+30 -20
+30 -20
pkgs/development/python-modules/dill/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , fetchPypi 4 , isPy27 5 - , nose 6 }: 7 8 buildPythonPackage rec { 9 pname = "dill"; 10 - version = "0.3.1.1"; 11 12 - src = fetchPypi { 13 - inherit pname version; 14 - sha256 = "42d8ef819367516592a825746a18073ced42ca169ab1f5f4044134703e7a049c"; 15 }; 16 17 - # python2 can't import a test fixture 18 - doCheck = !isPy27; 19 - checkInputs = [ nose ]; 20 - checkPhase = '' 21 - PYTHONPATH=$PWD/tests:$PYTHONPATH 22 - nosetests \ 23 - --ignore-files="test_classdef" \ 24 - --ignore-files="test_objects" \ 25 - --ignore-files="test_selected" \ 26 - --exclude="test_the_rest" \ 27 - --exclude="test_importable" 28 - ''; 29 # Tests seem to fail because of import pathing and referencing items/classes in modules. 30 # Seems to be a Nix/pathing related issue, not the codebase, so disabling failing tests. 31 32 - meta = { 33 description = "Serialize all of python (almost)"; 34 homepage = "https://github.com/uqfoundation/dill/"; 35 - license = lib.licenses.bsd3; 36 }; 37 }
··· 1 { lib 2 , buildPythonPackage 3 + , fetchFromGitHub 4 , isPy27 5 + , pytestCheckHook 6 }: 7 8 buildPythonPackage rec { 9 pname = "dill"; 10 + version = "0.3.4"; 11 + doCheck = !isPy27; 12 13 + src = fetchFromGitHub { 14 + owner = "uqfoundation"; 15 + repo = pname; 16 + rev = "${pname}-${version}"; 17 + sha256 = "0x702gh50wb3n820p2p9w49cn4a354y207pllwc7snfxprv6hypm"; 18 }; 19 20 + checkInputs = [ 21 + pytestCheckHook 22 + ]; 23 + 24 # Tests seem to fail because of import pathing and referencing items/classes in modules. 25 # Seems to be a Nix/pathing related issue, not the codebase, so disabling failing tests. 26 + disabledTestPaths = [ 27 + "tests/test_diff.py" 28 + "tests/test_module.py" 29 + "tests/test_objects.py" 30 + ]; 31 32 + disabledTests = [ 33 + "test_class_objects" 34 + "test_method_decorator" 35 + "test_importable" 36 + "test_the_rest" 37 + ]; 38 + 39 + pythonImportsCheck = [ "dill" ]; 40 + 41 + meta = with lib; { 42 description = "Serialize all of python (almost)"; 43 homepage = "https://github.com/uqfoundation/dill/"; 44 + license = licenses.bsd3; 45 + maintainers = with maintainers; [ ]; 46 }; 47 }