aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/executor/default.nix
blob: 8d9b379187b8c3cf9268a3c2ea01b3ed2acaf4a9 (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
{ lib, buildPythonPackage, fetchFromGitHub, coloredlogs, property-manager, fasteners, pytest, mock, virtualenv }:

buildPythonPackage rec {
  pname = "executor";
  version = "21.3";

  src = fetchFromGitHub {
    owner = "xolox";
    repo = "python-executor";
    rev = version;
    sha256 = "0rc14vjx3d6irfaw0pczzw1pn0xjl7xikv32hc1fvxv2ibnldv5d";
  };

  propagatedBuildInputs = [ coloredlogs property-manager fasteners ];

  checkInputs = [ pytest mock virtualenv ];

  # ignore impure tests
  checkPhase = ''
    pytest . -k "not option and not retry \
                 and not remote and not ssh \
                 and not foreach and not local_context"
  '';

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