blob: de1c1fc255a2254716ba4824ddbba99e17e86dcd (
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
|
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
colorama,
pytest,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "pytest-resource-path";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "yukihiko-shinoda";
repo = "pytest-resource-path";
tag = "v${version}";
hash = "sha256-9OBO9b02RrXilXUucerQQMTaQIRXtbcKCHqwwp9tBto=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "pytest-runner" ""
'';
build-system = [ setuptools ];
buildInputs = [ pytest ];
dependencies = [ colorama ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pytest_resource_path" ];
meta = {
description = "Pytest plugin to provide path for uniform access to test resources";
homepage = "https://github.com/yukihiko-shinoda/pytest-resource-path";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|