about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/zconfig/default.nix
blob: 8947badb91bf057dc17f1c8ab3886d47a80822d6 (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
{ lib
, stdenv
, buildPythonPackage
, docutils
, fetchPypi
, manuel
, pygments
, pytestCheckHook
, pythonOlder
, setuptools
, zope-testrunner
}:

buildPythonPackage rec {
  pname = "zconfig";
  version = "4.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    pname = "ZConfig";
    inherit version;
    hash = "sha256-+NZC+6a6mNCGMb4sH3GtGVfAUf70qj0/ufHgjcYdAVY=";
  };

  patches = lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch;

  nativeBuildInputs = [
    setuptools
  ];

  buildInputs = [
    docutils
    manuel
  ];

  propagatedBuildInputs = [
    zope-testrunner
  ];

  nativeCheckInputs = [
    pygments
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "ZConfig"
  ];

  pytestFlagsArray = [
    "-s"
  ];

  meta = with lib; {
    description = "Structured Configuration Library";
    homepage = "https://github.com/zopefoundation/ZConfig";
    changelog = "https://github.com/zopefoundation/ZConfig/blob/${version}/CHANGES.rst";
    license = licenses.zpl20;
    maintainers = with maintainers; [ goibhniu ];
  };
}