1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 py,
6 pytest,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-datafiles";
13 version = "3.0.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "omarkohl";
20 repo = "pytest-datafiles";
21 tag = version;
22 hash = "sha256-YFD8M5TG6VtLRX04R3u0jtYDDlaK32D4ArWxS6x2b/E=";
23 };
24
25 buildInputs = [
26 py
27 pytest
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "pytest_datafiles" ];
33
34 meta = with lib; {
35 description = "Pytest plugin to create a tmpdir containing predefined files/directories";
36 homepage = "https://github.com/omarkohl/pytest-datafiles";
37 license = licenses.mit;
38 maintainers = [ ];
39 };
40}