summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/zope-testrunner/default.nix
blob: 6947177911c610acde06e2bc2d37c132d4044f59 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  zope-interface,
  zope-exceptions,
}:

buildPythonPackage rec {
  pname = "zope-testrunner";
  version = "8.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "zopefoundation";
    repo = "zope.testrunner";
    tag = version;
    hash = "sha256-MqlS/VkLAv9M1WtJ6t2nPMZPH+Cz5wfy2VhtCx/Fwmw=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "setuptools ==" "setuptools >="
  '';

  build-system = [ setuptools ];

  dependencies = [
    zope-interface
    zope-exceptions
  ];

  pythonImportsCheck = [ "zope.testrunner" ];

  doCheck = false; # custom test modifies sys.path

  pythonNamespaces = [ "zope" ];

  meta = {
    description = "Flexible test runner with layer support";
    mainProgram = "zope-testrunner";
    homepage = "https://github.com/zopefoundation/zope.testrunner";
    changelog = "https://github.com/zopefoundation/zope.testrunner/blob/${src.tag}/CHANGES.rst";
    license = lib.licenses.zpl21;
    maintainers = [ ];
  };
}