Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 953 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, nose 6}: 7 8buildPythonPackage 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}