nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pytest,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-datafiles";
12 version = "3.0.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "omarkohl";
17 repo = "pytest-datafiles";
18 tag = version;
19 hash = "sha256-xB96JAUlEicIrTET1L363H8O2JwCTuUWr9jX/70uFvs=";
20 };
21
22 build-system = [ hatchling ];
23
24 buildInputs = [ pytest ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "pytest_datafiles" ];
29
30 meta = {
31 description = "Pytest plugin to create a tmpdir containing predefined files/directories";
32 homepage = "https://github.com/omarkohl/pytest-datafiles";
33 license = lib.licenses.mit;
34 maintainers = [ ];
35 };
36}