2019-02-15 11:44:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wurlitzer";
|
2019-08-06 00:56:44 +01:00
|
|
|
version = "1.0.3";
|
2019-02-15 11:44:44 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-06 00:56:44 +01:00
|
|
|
sha256 = "0nab45pfgqdxhhyshf717xfzniss2h3bx19zdaq9gqr6v8lw6wpr";
|
2019-02-15 11:44:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test test.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Capture C-level output in context managers";
|
|
|
|
homepage = https://github.com/minrk/wurlitzer;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|