1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, py
5, pytest
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-datafiles";
12 version = "3.0.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "omarkohl";
19 repo = pname;
20 rev = "refs/tags/${version}";
21 hash = "sha256-YFD8M5TG6VtLRX04R3u0jtYDDlaK32D4ArWxS6x2b/E=";
22 };
23
24 buildInputs = [
25 py
26 pytest
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "pytest_datafiles"
35 ];
36
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 };
43}