Files
nixpkgs/pkgs/development/python-modules/zope-copy/default.nix
2025-06-11 10:14:54 +00:00

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
zodbpickle,
zope-interface,
zope-location,
zope-schema,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "zope-copy";
version = "5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "zope.copy";
tag = version;
hash = "sha256-uQUvfZGrMvtClXa8tLKZFYehbcBIRx7WQnumUrdQjIk=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools < 74" "setuptools"
'';
build-system = [ setuptools ];
dependencies = [
zodbpickle
zope-interface
];
pythonImportsCheck = [ "zope.copy" ];
nativeCheckInputs = [
unittestCheckHook
zope-location
zope-schema
];
unittestFlagsArray = [
"-s"
"src/zope/copy"
];
pythonNamespaces = [ "zope" ];
meta = {
description = "Pluggable object copying mechanism";
homepage = "https://github.com/zopefoundation/zope.copy";
changelog = "https://github.com/zopefoundation/zope.copy/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.zpl21;
maintainers = with lib.maintainers; [ ];
};
}