1{ lib, buildPythonPackage, fetchPypi, setuptools-scm, pytest }:
2
3buildPythonPackage rec {
4 pname = "pytest-runner";
5 version = "5.3.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "0fce5b8dc68760f353979d99fdd6b3ad46330b6b1837e2077a89ebcf204aac91";
10 };
11
12 nativeBuildInputs = [ setuptools-scm pytest ];
13
14 postPatch = ''
15 rm pytest.ini
16 '';
17
18 checkPhase = ''
19 py.test tests
20 '';
21
22 # Fixture not found
23 doCheck = false;
24
25 meta = with lib; {
26 description = "Invoke py.test as distutils command with dependency resolution";
27 homepage = "https://github.com/pytest-dev/pytest-runner";
28 license = licenses.mit;
29 };
30}