summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-runner/default.nix
blob: d99f72299dd7d7c97c3a413c9ec82008562ec35a (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
{ lib, buildPythonPackage, fetchPypi, setuptools-scm, pytest }:

buildPythonPackage rec {
  pname = "pytest-runner";
  version = "5.3.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0fce5b8dc68760f353979d99fdd6b3ad46330b6b1837e2077a89ebcf204aac91";
  };

  nativeBuildInputs = [ setuptools-scm pytest ];

  postPatch = ''
    rm pytest.ini
  '';

  checkPhase = ''
    py.test tests
  '';

  # Fixture not found
  doCheck = false;

  meta = with lib; {
    description = "Invoke py.test as distutils command with dependency resolution";
    homepage = "https://github.com/pytest-dev/pytest-runner";
    license = licenses.mit;
  };
}