1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7 zope-interface,
8}:
9
10buildPythonPackage rec {
11 pname = "zope-exceptions";
12 version = "5.2";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "zopefoundation";
19 repo = "zope.exceptions";
20 tag = version;
21 hash = "sha256-jbzUUB6ifTfxiGEiyAmsDoDLyRVuZPgIsN8mCNJkv4Q=";
22 };
23
24 build-system = [
25 setuptools
26 ];
27
28 dependencies = [
29 setuptools
30 zope-interface
31 ];
32
33 # circular deps
34 doCheck = false;
35
36 pythonImportsCheck = [ "zope.exceptions" ];
37
38 meta = {
39 description = "Exception interfaces and implementations";
40 homepage = "https://pypi.python.org/pypi/zope.exceptions";
41 changelog = "https://github.com/zopefoundation/zope.exceptions/blob/${version}/CHANGES.rst";
42 license = lib.licenses.zpl21;
43 maintainers = with lib.maintainers; [ nickcao ];
44 };
45}