depot/third_party/nixpkgs/pkgs/development/python-modules/cloudpickle/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

50 lines
1,008 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
flit-core,
# tests
psutil,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "cloudpickle";
version = "3.0.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "cloudpipe";
repo = "cloudpickle";
rev = "refs/tags/v${version}";
hash = "sha256-UeKVwzT0m4fhEVnG7TvQsFR99JsmwwoXmr+rWnTCeJU=";
};
nativeBuildInputs = [ flit-core ];
nativeCheckInputs = [
psutil
pytestCheckHook
];
pythonImportsCheck = [ "cloudpickle" ];
disabledTestPaths = [
# ModuleNotFoundError: No module named 'psutil'
"tests/cloudpickle_test.py"
];
meta = with lib; {
changelog = "https://github.com/cloudpipe/cloudpickle/blob/v${version}/CHANGES.md";
description = "Extended pickling support for Python objects";
homepage = "https://github.com/cloudpipe/cloudpickle";
license = with licenses; [ bsd3 ];
maintainers = [ ];
};
}