python310Packages.dill: 0.3.5.1 -> 0.3.6

1. Update version so that it is compatible with Python 3.11.
2. Run tests the same way that dill does.
3. Add myself to the maintainer list.
This commit is contained in:
Theodore Ni
2022-11-01 00:28:24 -07:00
parent d8be1b011f
commit bba03d39a9
@@ -1,41 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, python
, setuptools
}:
buildPythonPackage rec {
pname = "dill";
version = "0.3.5.1";
version = "0.3.6";
format = "pyproject";
src = fetchFromGitHub {
owner = "uqfoundation";
repo = pname;
rev = "refs/tags/dill-${version}";
sha256 = "sha256-gWE7aQodblgHjUqGAzOJGgxJ4qx9wHo/DU4KRE6JMWo=";
hash = "sha256-lh1o/TqnqtYN9xTZom33y1/7ZhMEAFpheLdtalwgObQ=";
};
checkInputs = [
pytestCheckHook
nativeBuildInputs = [
setuptools
];
# 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"
];
checkPhase = ''
runHook preCheck
${python.interpreter} dill/tests/__main__.py
runHook postCheck
'';
pythonImportsCheck = [ "dill" ];
@@ -43,6 +33,6 @@ buildPythonPackage rec {
description = "Serialize all of python (almost)";
homepage = "https://github.com/uqfoundation/dill/";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ tjni ];
};
}