ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / dill / default.nix
blob9167e629d573e3e03c1fd0a401a25de5a9584a87
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 }:
7 buildPythonPackage rec {
8   pname = "dill";
9   version = "0.3.5.1";
11   src = fetchFromGitHub {
12     owner = "uqfoundation";
13     repo = pname;
14     rev = "refs/tags/dill-${version}";
15     sha256 = "sha256-gWE7aQodblgHjUqGAzOJGgxJ4qx9wHo/DU4KRE6JMWo=";
16   };
18   checkInputs = [
19     pytestCheckHook
20   ];
22   # Tests seem to fail because of import pathing and referencing items/classes in modules.
23   # Seems to be a Nix/pathing related issue, not the codebase, so disabling failing tests.
24   disabledTestPaths = [
25     "tests/test_diff.py"
26     "tests/test_module.py"
27     "tests/test_objects.py"
28     "tests/test_session.py"
29   ];
31   disabledTests = [
32     "test_class_objects"
33     "test_importable"
34     "test_method_decorator"
35     "test_the_rest"
36     # test exception catching needs updating, can probably be removed with next update
37     "test_recursive_function"
38   ];
40   pythonImportsCheck = [ "dill" ];
42   meta = with lib; {
43     description = "Serialize all of python (almost)";
44     homepage = "https://github.com/uqfoundation/dill/";
45     license = licenses.bsd3;
46     maintainers = with maintainers; [ ];
47   };