summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/executor/default.nix
blob: 6a93631fe79ba1e6af89fa999731ec2107cf1390 (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  isPy27,
  pythonAtLeast,
  coloredlogs,
  humanfriendly,
  property-manager,
  fasteners,
  six,
  pytestCheckHook,
  mock,
  virtualenv,
}:

buildPythonPackage rec {
  pname = "executor";
  version = "23.2";
  format = "setuptools";

  # pipes is removed in python 3.13
  disabled = isPy27 || pythonAtLeast "3.13";

  src = fetchFromGitHub {
    owner = "xolox";
    repo = "python-executor";
    tag = version;
    hash = "sha256-Gjv+sUtnP11cM8GMGkFzXHVx0c2XXSU56L/QwoQxINc=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    coloredlogs
    humanfriendly
    property-manager
    fasteners
    six
  ];

  nativeCheckInputs = [
    pytestCheckHook
    mock
    virtualenv
  ];

  # ignore impure tests
  disabledTests = [
    "option"
    "retry"
    "remote"
    "ssh"
    "foreach"
    "local_context"
    "release" # meant to be ran on ubuntu to succeed
  ];

  meta = {
    changelog = "https://github.com/xolox/python-executor/blob/${version}/CHANGELOG.rst";
    description = "Programmer friendly subprocess wrapper";
    mainProgram = "executor";
    homepage = "https://github.com/xolox/python-executor";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ eyjhb ];
  };
}