Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 32 lines 581 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, mock 6, pytest 7, selectors2 8}: 9 10buildPythonPackage rec { 11 pname = "wurlitzer"; 12 version = "2.0.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "0xndv47iwc9k8cp5r9r1z3r0xww0r5x5b7qsmn39gk2gsg0119c6"; 17 }; 18 19 propagatedBuildInputs = lib.optionals isPy27 [ selectors2 ]; 20 21 checkInputs = [ mock pytest ]; 22 23 checkPhase = '' 24 py.test test.py 25 ''; 26 27 meta = { 28 description = "Capture C-level output in context managers"; 29 homepage = https://github.com/minrk/wurlitzer; 30 license = lib.licenses.mit; 31 }; 32}