blob: 6bcd648b015dee8e332fbe6303850d860a5db575 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
trio,
hypothesis,
outcome,
pytest,
}:
buildPythonPackage rec {
pname = "pytest-trio";
version = "0.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-trio";
repo = "pytest-trio";
tag = "v${version}";
hash = "sha256-gUH35Yk/pBD2EdCEt8D0XQKWU8BwmX5xtAW10qRhoYk=";
};
build-system = [ setuptools ];
buildInputs = [ pytest ];
dependencies = [
trio
outcome
];
nativeCheckInputs = [
pytest
hypothesis
];
# broken with pytest 5 and 6
doCheck = false;
checkPhase = ''
rm pytest.ini
PYTHONPATH=$PWD:$PYTHONPATH pytest
'';
pythonImportsCheck = [ "pytest_trio" ];
meta = {
description = "Pytest plugin for trio";
homepage = "https://github.com/python-trio/pytest-trio";
license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ hexa ];
};
}
|