anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / pytest-datafiles / default.nix
blob2d98d9cfb280640b113c2f06c76cb5d2b0a91c3e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   py,
6   pytest,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "pytest-datafiles";
13   version = "3.0.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "omarkohl";
20     repo = pname;
21     rev = "refs/tags/${version}";
22     hash = "sha256-YFD8M5TG6VtLRX04R3u0jtYDDlaK32D4ArWxS6x2b/E=";
23   };
25   buildInputs = [
26     py
27     pytest
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   pythonImportsCheck = [ "pytest_datafiles" ];
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   };