{ lib , buildPythonPackage , fetchFromGitHub , pytestCheckHook }: buildPythonPackage rec { pname = "dill"; version = "0.3.5.1"; src = fetchFromGitHub { owner = "uqfoundation"; repo = pname; rev = "refs/tags/dill-${version}"; sha256 = "sha256-gWE7aQodblgHjUqGAzOJGgxJ4qx9wHo/DU4KRE6JMWo="; }; checkInputs = [ pytestCheckHook ]; # Tests seem to fail because of import pathing and referencing items/classes in modules. # Seems to be a Nix/pathing related issue, not the codebase, so disabling failing tests. disabledTestPaths = [ "tests/test_diff.py" "tests/test_module.py" "tests/test_objects.py" "tests/test_session.py" ]; disabledTests = [ "test_class_objects" "test_importable" "test_method_decorator" "test_the_rest" # test exception catching needs updating, can probably be removed with next update "test_recursive_function" ]; pythonImportsCheck = [ "dill" ]; meta = with lib; { description = "Serialize all of python (almost)"; homepage = "https://github.com/uqfoundation/dill/"; license = licenses.bsd3; maintainers = with maintainers; [ ]; }; }