1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 colorama,
7 pytest,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-resource-path";
14 version = "1.4.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "yukihiko-shinoda";
19 repo = "pytest-resource-path";
20 tag = "v${version}";
21 hash = "sha256-9OBO9b02RrXilXUucerQQMTaQIRXtbcKCHqwwp9tBto=";
22 };
23
24 postPatch = ''
25 substituteInPlace setup.cfg \
26 --replace "pytest-runner" ""
27 '';
28
29 build-system = [ setuptools ];
30
31 buildInputs = [ pytest ];
32
33 dependencies = [ colorama ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "pytest_resource_path" ];
38
39 meta = with lib; {
40 description = "Pytest plugin to provide path for uniform access to test resources";
41 homepage = "https://github.com/yukihiko-shinoda/pytest-resource-path";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];
44 };
45}