hoarder: 0.21.0 -> 0.22.0
[NixPkgs.git] / pkgs / development / python-modules / pytest-datadir / default.nix
blobf7f098449e6bf6aa6d8d8b36a9803706946080e7
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   setuptools,
7   setuptools-scm,
8   pytestCheckHook,
9 }:
11 buildPythonPackage rec {
12   pname = "pytest-datadir";
13   version = "1.5.0";
14   format = "pyproject";
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "gabrielcnr";
20     repo = "pytest-datadir";
21     tag = "v${version}";
22     hash = "sha256-sRLqL+8Jf5Kz+qscuG3hClUuPA+33PQa+ob1ht/7CJE=";
23   };
25   nativeBuildInputs = [
26     setuptools
27     setuptools-scm
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   pythonImportsCheck = [ "pytest_datadir" ];
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/v${version}/CHANGELOG.rst";
38     license = licenses.mit;
39     maintainers = with maintainers; [ kira-bruneau ];
40   };