2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
flit-core,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
psutil,
|
|
|
|
pytestCheckHook,
|
2022-06-26 10:26:21 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cloudpickle";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "3.0.0";
|
|
|
|
pyproject = true;
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudpipe";
|
|
|
|
repo = "cloudpickle";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-UeKVwzT0m4fhEVnG7TvQsFR99JsmwwoXmr+rWnTCeJU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
psutil
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "cloudpickle" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
disabledTestPaths = [
|
2024-01-13 08:15:51 +00:00
|
|
|
# ModuleNotFoundError: No module named 'psutil'
|
2022-06-26 10:26:21 +00:00
|
|
|
"tests/cloudpickle_test.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/cloudpipe/cloudpickle/blob/v${version}/CHANGES.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Extended pickling support for Python objects";
|
|
|
|
homepage = "https://github.com/cloudpipe/cloudpickle";
|
|
|
|
license = with licenses; [ bsd3 ];
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|