about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/runs/default.nix
blob: ec751bfd7f4b10d9d700ab21873e07ebedc165fe (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
42
43
44
45
46
47
48
49
50
51
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, xmod
, pytestCheckHook
, tdir
}:

buildPythonPackage rec {
  pname = "runs";
  version = "1.2.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rec";
    repo = "runs";
    rev = "v${version}";
    hash = "sha256-aEamhXr3C+jYDzQGzcmGFyl5oEtovxlNacFM08y0ZEk=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    xmod
  ];

  nativeCheckInputs = [
    pytestCheckHook
    tdir
  ];

  disabledTests = [
    # requires .git directory
    "test_many"
  ];

  pythonImportsCheck = [
    "runs"
  ];

  meta = with lib; {
    description = "Run a block of text as a subprocess";
    homepage = "https://github.com/rec/runs";
    changelog = "https://github.com/rec/runs/blob/${src.rev}/CHANGELOG";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}