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

46 lines
904 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPyPy,
# build-systems
setuptools,
# dependencies
cffi,
zope-deferredimport,
zope-interface,
pythonOlder,
}:
buildPythonPackage rec {
pname = "persistent";
version = "6.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-CDZQwP/ty4gDKJY8KUuVEaArawXkIec3p9Vfnu2I+18=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
zope-interface
zope-deferredimport
]
++ lib.optionals (!isPyPy) [ cffi ];
pythonImportsCheck = [ "persistent" ];
meta = with lib; {
description = "Automatic persistence for Python objects";
homepage = "https://github.com/zopefoundation/persistent/";
changelog = "https://github.com/zopefoundation/persistent/blob/${version}/CHANGES.rst";
license = licenses.zpl21;
maintainers = [ ];
};
}