blob: d51ff22a94a03a8f7e432b26643d650129981cdb (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
hatchling,
pytest,
tappy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pytest-tap";
version = "3.5";
pyproject = true;
src = fetchFromGitHub {
owner = "python-tap";
repo = "pytest-tap";
rev = "v${version}";
hash = "sha256-IuVtH1hrynbFDmz7IZ6vef9bAwl8L1eqR9WYQVL6CCA=";
};
patches = [
(fetchpatch {
# see https://github.com/python-tap/pytest-tap/pull/105
name = "missing-package-in-wheel.patch";
url = "https://github.com/python-tap/pytest-tap/commit/056a44a632b1af19d9ba4b5044768bde3dd6a764.patch";
hash = "sha256-P52NqgXtnO2SthDwVbT+NVPeBNhjGS/8Vsbe/WLCc3A=";
})
];
build-system = [ hatchling ];
buildInputs = [ pytest ];
propagatedBuildInputs = [ tappy ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pytest_tap" ];
meta = {
description = "Test Anything Protocol (TAP) reporting plugin for pytest";
homepage = "https://github.com/python-tap/pytest-tap";
changelog = "https://github.com/python-tap/pytest-tap/blob/v${version}/docs/releases.rst";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ cynerd ];
};
}
|