1{ lib
2, buildPythonPackage
3, fetchPypi
4, mock
5, pytest
6}:
7
8buildPythonPackage rec {
9 pname = "wurlitzer";
10 version = "1.0.2";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "23e85af0850b98add77bef0a1eb47b243baab29160131d349234c9dfc9e57add";
15 };
16
17 checkInputs = [ mock pytest ];
18
19 checkPhase = ''
20 py.test test.py
21 '';
22
23 meta = {
24 description = "Capture C-level output in context managers";
25 homepage = https://github.com/minrk/wurlitzer;
26 license = lib.licenses.mit;
27 };
28}