2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-07-16 19:40:57 +00:00
|
|
|
, fetchFromGitHub
|
2022-11-21 17:40:18 +00:00
|
|
|
, python
|
2023-11-16 04:20:00 +00:00
|
|
|
, pythonOlder
|
2022-11-21 17:40:18 +00:00
|
|
|
, setuptools
|
|
|
|
|
|
|
|
# passthru tests
|
|
|
|
, apache-beam
|
|
|
|
, datasets
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dill";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.3.8";
|
2022-11-21 17:40:18 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uqfoundation";
|
|
|
|
repo = pname;
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-r65JgQH+5raiRX8NYELUB9B0zLy4z606EkFJaNpapNc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2021-07-16 19:40:57 +00:00
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
${python.interpreter} dill/tests/__main__.py
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
2021-07-16 19:40:57 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit apache-beam datasets;
|
|
|
|
};
|
2021-07-16 19:40:57 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "dill" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Serialize all of python (almost)";
|
|
|
|
homepage = "https://github.com/uqfoundation/dill/";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/uqfoundation/dill/releases/tag/dill-${version}";
|
2021-07-16 19:40:57 +00:00
|
|
|
license = licenses.bsd3;
|
2022-11-21 17:40:18 +00:00
|
|
|
maintainers = with maintainers; [ tjni ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|