1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 setuptools,
7 setuptools-scm,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-datadir";
13 version = "1.8.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "gabrielcnr";
20 repo = "pytest-datadir";
21 tag = "v${version}";
22 hash = "sha256-ttzYFzePPpFY6DfMGLVImZMiehuR9IhmIFxBlgrDDmk=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 setuptools-scm
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "pytest_datadir" ];
33
34 meta = with lib; {
35 description = "Pytest plugin for manipulating test data directories and files";
36 homepage = "https://github.com/gabrielcnr/pytest-datadir";
37 changelog = "https://github.com/gabrielcnr/pytest-datadir/blob/${src.tag}/CHANGELOG.rst";
38 license = licenses.mit;
39 maintainers = with maintainers; [ kira-bruneau ];
40 };
41}