Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytest-datafiles / default.nix
blob314231942089f58d6c10ee8bd47fc6c87d54122e
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , py
5 , pytest
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "pytest-datafiles";
12   version = "3.0.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "omarkohl";
19     repo = pname;
20     rev = "refs/tags/${version}";
21     hash = "sha256-YFD8M5TG6VtLRX04R3u0jtYDDlaK32D4ArWxS6x2b/E=";
22   };
24   buildInputs = [
25     py
26     pytest
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [
34     "pytest_datafiles"
35   ];
37   meta = with lib; {
38     description = "Pytest plugin to create a tmpdir containing predefined files/directories";
39     homepage = "https://github.com/omarkohl/pytest-datafiles";
40     license = licenses.mit;
41     maintainers = with maintainers; [ ];
42   };