Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / dill / default.nix
blob0983805780fa87b9b7088671ba093e27f0f2c819
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , isPy27
5 , nose
6 }:
8 buildPythonPackage rec {
9   pname = "dill";
10   version = "0.3.1.1";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "42d8ef819367516592a825746a18073ced42ca169ab1f5f4044134703e7a049c";
15   };
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.
32   meta = {
33     description = "Serialize all of python (almost)";
34     homepage = "https://github.com/uqfoundation/dill/";
35     license = lib.licenses.bsd3;
36   };