about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/zope-testing/default.nix
blob: 65672118e4ef9ee5805ed2719c0dd2505a181669 (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
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, setuptools
, pytestCheckHook
}:

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

  src = fetchPypi {
    pname = "zope.testing";
    inherit version;
    hash = "sha256-6HzQ2NZmVzza8TOBare5vuyAGmSoZZXBnLX+mS7z1kk=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  doCheck = !isPyPy;

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pytestFlagsArray = [
    "src/zope/testing/tests.py"
  ];

  pythonImportsCheck = [
    "zope.testing"
  ];

  pythonNamespaces = [
    "zope"
  ];

  meta = with lib; {
    description = "Zope testing helpers";
    homepage =  "https://github.com/zopefoundation/zope.testing";
    changelog = "https://github.com/zopefoundation/zope.testing/blob/${version}/CHANGES.rst";
    license = licenses.zpl21;
    maintainers = with maintainers; [ goibhniu ];
  };
}