1{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm, pytest }:
2
3buildPythonPackage rec {
4 pname = "pytest-runner";
5 version = "4.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "d23f117be39919f00dd91bffeb4f15e031ec797501b717a245e377aee0f577be";
10 };
11
12 buildInputs = [ 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 stdenv.lib; {
26 description = "Invoke py.test as distutils command with dependency resolution";
27 homepage = https://bitbucket.org/pytest-dev/pytest-runner;
28 license = licenses.mit;
29 };
30}