1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPy27
5, pytestCheckHook
6}:
7
8buildPythonPackage 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}