2017-09-05 11:16:41 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-07-15 14:35:15 +02:00
|
|
|
, fetchFromGitHub
|
2020-01-21 00:15:10 +01:00
|
|
|
, isPy27
|
2021-07-15 14:35:15 +02:00
|
|
|
, pytestCheckHook
|
2017-09-05 11:16:41 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dill";
|
2021-07-15 14:35:15 +02:00
|
|
|
version = "0.3.4";
|
|
|
|
doCheck = !isPy27;
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2021-07-15 14:35:15 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uqfoundation";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "0x702gh50wb3n820p2p9w49cn4a354y207pllwc7snfxprv6hypm";
|
2017-09-05 11:16:41 +02:00
|
|
|
};
|
|
|
|
|
2021-07-15 14:35:15 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2020-01-21 00:15:10 +01:00
|
|
|
# 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.
|
2021-07-15 14:35:15 +02:00
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_diff.py"
|
|
|
|
"tests/test_module.py"
|
|
|
|
"tests/test_objects.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_class_objects"
|
|
|
|
"test_method_decorator"
|
|
|
|
"test_importable"
|
|
|
|
"test_the_rest"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "dill" ];
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2021-07-15 14:35:15 +02:00
|
|
|
meta = with lib; {
|
2017-09-05 11:16:41 +02:00
|
|
|
description = "Serialize all of python (almost)";
|
2019-12-08 17:50:31 +01:00
|
|
|
homepage = "https://github.com/uqfoundation/dill/";
|
2021-07-15 14:35:15 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ];
|
2017-09-05 11:16:41 +02:00
|
|
|
};
|
2019-12-08 17:50:31 +01:00
|
|
|
}
|