blob: e4727abadb7c4ea2e50923383f2992ee51840811 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, setuptools-scm
, wheel
, py
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-forked";
version = "1.6.0";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "pytest-dev";
repo = "pytest-forked";
rev = "refs/tags/v${version}";
hash = "sha256-owkGwF5WQ17/CXwTsIYJ2AgktekRB4qhtsDxR0LCI/k=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
buildInputs = [
pytest
];
propagatedBuildInputs = [
py
];
nativeCheckInputs = [
py
pytestCheckHook
];
setupHook = ./setup-hook.sh;
meta = {
changelog = "https://github.com/pytest-dev/pytest-forked/blob/${src.rev}/CHANGELOG.rst";
description = "Run tests in isolated forked subprocesses";
homepage = "https://github.com/pytest-dev/pytest-forked";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|