about summary refs log tree commit diff
path: root/pkgs/development/python-modules/runs/default.nix
blob: 19ea9683b3784eef30c79a5d30ac9f24e0fe4607 (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
{
  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 = [ ];
  };
}