Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytest-resource-path / default.nix
blob28e62eaa7e45952c125343dbe16cff8dbd198e1d
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , colorama
6 , pytest
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "pytest-resource-path";
12   version = "1.3.0";
13   format = "setuptools";
14   disabled = pythonOlder "3.5";
16   src = fetchFromGitHub {
17     owner = "yukihiko-shinoda";
18     repo = pname;
19     rev = "v${version}";
20     sha256 = "1siv3pk4fsabz254fdzr7c0pxy124habnbw4ym66pfk883fr96g2";
21   };
23   postPatch = ''
24     substituteInPlace setup.cfg \
25       --replace "pytest-runner" ""
26   '';
28   buildInputs = [
29     pytest
30   ];
32   propagatedBuildInputs = [
33     colorama
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [
41     "pytest_resource_path"
42   ];
44   meta = with lib; {
45     description = "Pytest plugin to provide path for uniform access to test resources";
46     homepage = "https://github.com/yukihiko-shinoda/pytest-resource-path";
47     license = licenses.mit;
48     maintainers = with maintainers; [ fab ];
49   };