blob: e0454193f299fd4b09cafbae161265d4b6230608 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "zope-hookable";
version = "8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "zope.hookable";
tag = version;
hash = "sha256-5ps/H9bL2oN9IHxXzpWw/9uMLhwV+OpQ26kXlsP4hgw=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools ==" "setuptools >="
'';
build-system = [ setuptools ];
pythonImportsCheck = [ "zope.hookable" ];
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "src/zope/hookable/tests" ];
pythonNamespaces = [ "zope" ];
meta = {
description = "Supports the efficient creation of “hookable” objects";
homepage = "https://github.com/zopefoundation/zope.hookable";
changelog = "https://github.com/zopefoundation/zope.hookable/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.zpl21;
};
}
|