nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 unittestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "zope-hookable";
11 version = "8.2";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "zopefoundation";
16 repo = "zope.hookable";
17 tag = version;
18 hash = "sha256-pryx55dzvg+6jSUj4avskTnGKe6w1HkEh6v6OOlHIXY=";
19 };
20
21 build-system = [ setuptools ];
22
23 pythonImportsCheck = [ "zope.hookable" ];
24
25 nativeCheckInputs = [ unittestCheckHook ];
26
27 unittestFlagsArray = [ "src/zope/hookable/tests" ];
28
29 pythonNamespaces = [ "zope" ];
30
31 meta = {
32 description = "Supports the efficient creation of “hookable” objects";
33 homepage = "https://github.com/zopefoundation/zope.hookable";
34 changelog = "https://github.com/zopefoundation/zope.hookable/blob/${src.tag}/CHANGES.rst";
35 license = lib.licenses.zpl21;
36 };
37}