Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 32 lines 583 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.1"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "0hvmbc41kdwrjns8z1s4a59a4azdvzb8q3vs7nn1li4qm4l0g3yh"; 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}