3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #198883 from tjni/update-dill

This commit is contained in:
Sandro 2022-11-12 23:09:20 +01:00 committed by GitHub
commit 07632280e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,41 +1,31 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pytestCheckHook , python
, setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "dill"; pname = "dill";
version = "0.3.5.1"; version = "0.3.6";
format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "uqfoundation"; owner = "uqfoundation";
repo = pname; repo = pname;
rev = "refs/tags/dill-${version}"; rev = "refs/tags/dill-${version}";
sha256 = "sha256-gWE7aQodblgHjUqGAzOJGgxJ4qx9wHo/DU4KRE6JMWo="; hash = "sha256-lh1o/TqnqtYN9xTZom33y1/7ZhMEAFpheLdtalwgObQ=";
}; };
checkInputs = [ nativeBuildInputs = [
pytestCheckHook setuptools
]; ];
# Tests seem to fail because of import pathing and referencing items/classes in modules. checkPhase = ''
# Seems to be a Nix/pathing related issue, not the codebase, so disabling failing tests. runHook preCheck
disabledTestPaths = [ ${python.interpreter} dill/tests/__main__.py
"tests/test_diff.py" runHook postCheck
"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" ]; pythonImportsCheck = [ "dill" ];
@ -43,6 +33,6 @@ buildPythonPackage rec {
description = "Serialize all of python (almost)"; description = "Serialize all of python (almost)";
homepage = "https://github.com/uqfoundation/dill/"; homepage = "https://github.com/uqfoundation/dill/";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ tjni ];
}; };
} }