about summary refs log tree commit diff
path: root/pkgs/development/python-modules/tdir/default.nix
blob: c00e0b3f0bc5d9feefbbd354bfeae2a52e13c8c8 (plain) (blame)
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
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  dek,
  xmod,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "tdir";
  version = "1.8.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rec";
    repo = "tdir";
    rev = "v${version}";
    hash = "sha256-YYQ33Blhqk/CbocqkB9Nh6qbzMjQT07fmzx+fDTvdw8=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    dek
    xmod
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "tdir" ];

  meta = with lib; {
    description = "Create, fill a temporary directory";
    homepage = "https://github.com/rec/tdir";
    changelog = "https://github.com/rec/tdir/blob/${src.rev}/CHANGELOG";
    license = licenses.mit;
    maintainers = [ ];
  };
}