Files
nixpkgs/pkgs/development/python-modules/persistent/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1006 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPyPy,
# build-systems
setuptools,
# dependencies
cffi,
zope-deferredimport,
zope-interface,
pythonOlder,
}:
buildPythonPackage rec {
pname = "persistent";
version = "6.1.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-LTIbYOsH75APhals8HH/jDua7m5nm+zEjEbzRX6NnS8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools < 74" "setuptools"
'';
build-system = [ setuptools ];
dependencies = [
zope-interface
zope-deferredimport
]
++ lib.optionals (!isPyPy) [ cffi ];
pythonImportsCheck = [ "persistent" ];
meta = {
description = "Automatic persistence for Python objects";
homepage = "https://github.com/zopefoundation/persistent/";
changelog = "https://github.com/zopefoundation/persistent/blob/${version}/CHANGES.rst";
license = lib.licenses.zpl21;
maintainers = [ ];
};
}