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