1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 xmod,
7 pytestCheckHook,
8 tdir,
9}:
10
11buildPythonPackage rec {
12 pname = "runs";
13 version = "1.2.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "rec";
18 repo = "runs";
19 rev = "v${version}";
20 hash = "sha256-aEamhXr3C+jYDzQGzcmGFyl5oEtovxlNacFM08y0ZEk=";
21 };
22
23 build-system = [ poetry-core ];
24
25 dependencies = [ xmod ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 tdir
30 ];
31
32 disabledTests = [
33 # requires .git directory
34 "test_many"
35 ];
36
37 pythonImportsCheck = [ "runs" ];
38
39 meta = with lib; {
40 description = "Run a block of text as a subprocess";
41 homepage = "https://github.com/rec/runs";
42 changelog = "https://github.com/rec/runs/blob/${src.rev}/CHANGELOG";
43 license = licenses.mit;
44 maintainers = [ ];
45 };
46}