about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/zope-configuration/default.nix
blob: 6a664daaf026d557c03cf13afde221edb8551569 (plain) (blame)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, zope-i18nmessageid
, zope-interface
, zope-schema
, pytestCheckHook
, zope-testing
, zope-testrunner
, manuel
}:

buildPythonPackage rec {
  pname = "zope-configuration";
  version = "5.0.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    pname = "zope.configuration";
    inherit version;
    hash = "sha256-81h36tXpmANjhdLdxGkZ6ryZjmmcBZh5ZPFxrY3ZJxs=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  nativeCheckInputs = [
    manuel
    pytestCheckHook
    zope-testing
    zope-testrunner
  ];

  propagatedBuildInputs = [
    zope-i18nmessageid
    zope-interface
    zope-schema
  ];

  # Need to investigate how to run the tests with zope-testrunner
  doCheck = false;

  pythonImportsCheck = [
    "zope.configuration"
  ];

  pythonNamespaces = [
    "zope"
  ];

  meta = with lib; {
    description = "Zope Configuration Markup Language (ZCML)";
    homepage = "https://github.com/zopefoundation/zope.configuration";
    changelog = "https://github.com/zopefoundation/zope.configuration/blob/${version}/CHANGES.rst";
    license = licenses.zpl21;
    maintainers = with maintainers; [ goibhniu ];
  };
}