nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, fetchPypi, setuptools_scm, pytest }:
2
3buildPythonPackage rec {
4 pname = "pytest-runner";
5 version = "5.3.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "ca3f58ff4957e8be6c54c55d575b235725cbbcf4dc0d5091c29c6444cfc8a5fe";
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}