summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-datafiles/default.nix
blob: ef8016b140b2192c0b01499d33f9c9f763605bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  py,
  pytest,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pytest-datafiles";
  version = "3.0.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "omarkohl";
    repo = "pytest-datafiles";
    tag = version;
    hash = "sha256-YFD8M5TG6VtLRX04R3u0jtYDDlaK32D4ArWxS6x2b/E=";
  };

  buildInputs = [
    py
    pytest
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pytest_datafiles" ];

  meta = {
    description = "Pytest plugin to create a tmpdir containing predefined files/directories";
    homepage = "https://github.com/omarkohl/pytest-datafiles";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}