1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "wurlitzer"; 10 version = "3.0.3"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-Ik9f5wYYvjhywF393IxFcZHsGHBlRZYnn8we2t6+Pls="; 18 }; 19 20 nativeCheckInputs = [ 21 pytestCheckHook 22 ]; 23 24 pythonImportsCheck = [ 25 "wurlitzer" 26 ]; 27 28 pytestFlagsArray = [ 29 "test.py" 30 ]; 31 32 meta = with lib; { 33 description = "Capture C-level output in context managers"; 34 homepage = "https://github.com/minrk/wurlitzer"; 35 changelog = "https://github.com/minrk/wurlitzer/blob/{version}/CHANGELOG.md"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ ]; 38 }; 39}