Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 31 lines 885 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, coloredlogs, property-manager, fasteners, pytest, mock, virtualenv }: 2 3buildPythonPackage rec { 4 pname = "executor"; 5 version = "21.3"; 6 7 src = fetchFromGitHub { 8 owner = "xolox"; 9 repo = "python-executor"; 10 rev = version; 11 sha256 = "0rc14vjx3d6irfaw0pczzw1pn0xjl7xikv32hc1fvxv2ibnldv5d"; 12 }; 13 14 propagatedBuildInputs = [ coloredlogs property-manager fasteners ]; 15 16 checkInputs = [ pytest mock virtualenv ]; 17 18 # ignore impure tests 19 checkPhase = '' 20 pytest . -k "not option and not retry \ 21 and not remote and not ssh \ 22 and not foreach and not local_context" 23 ''; 24 25 meta = with lib; { 26 description = "Programmer friendly subprocess wrapper"; 27 homepage = https://github.com/xolox/python-executor; 28 license = licenses.mit; 29 maintainers = with maintainers; [ eyjhb ]; 30 }; 31}