1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 isPy27,
6 coloredlogs,
7 humanfriendly,
8 property-manager,
9 fasteners,
10 six,
11 pytestCheckHook,
12 mock,
13 virtualenv,
14}:
15
16buildPythonPackage rec {
17 pname = "executor";
18 version = "23.2";
19 format = "setuptools";
20 disabled = isPy27;
21
22 src = fetchFromGitHub {
23 owner = "xolox";
24 repo = "python-executor";
25 rev = version;
26 sha256 = "1mr0662c5l5zx0wjapcprp8p2xawfd0im3616df5sgv79fqzwfqs";
27 };
28
29 propagatedBuildInputs = [
30 coloredlogs
31 humanfriendly
32 property-manager
33 fasteners
34 six
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 mock
40 virtualenv
41 ];
42
43 # ignore impure tests
44 disabledTests = [
45 "option"
46 "retry"
47 "remote"
48 "ssh"
49 "foreach"
50 "local_context"
51 "release" # meant to be ran on ubuntu to succeed
52 ];
53
54 meta = with lib; {
55 changelog = "https://github.com/xolox/python-executor/blob/${version}/CHANGELOG.rst";
56 description = "Programmer friendly subprocess wrapper";
57 mainProgram = "executor";
58 homepage = "https://github.com/xolox/python-executor";
59 license = licenses.mit;
60 maintainers = with maintainers; [ eyjhb ];
61 };
62}