1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 dek,
7 xmod,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "tdir";
13 version = "1.8.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "rec";
18 repo = "tdir";
19 rev = "v${version}";
20 hash = "sha256-YYQ33Blhqk/CbocqkB9Nh6qbzMjQT07fmzx+fDTvdw8=";
21 };
22
23 build-system = [ poetry-core ];
24
25 dependencies = [
26 dek
27 xmod
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "tdir" ];
33
34 meta = with lib; {
35 description = "Create, fill a temporary directory";
36 homepage = "https://github.com/rec/tdir";
37 changelog = "https://github.com/rec/tdir/blob/${src.rev}/CHANGELOG";
38 license = licenses.mit;
39 maintainers = [ ];
40 };
41}