2019-02-15 11:44:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-11-06 19:28:15 +00:00
|
|
|
, isPy27
|
2019-02-15 11:44:44 +00:00
|
|
|
, mock
|
|
|
|
, pytest
|
2019-11-06 19:28:15 +00:00
|
|
|
, selectors2
|
2019-02-15 11:44:44 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wurlitzer";
|
2020-07-14 21:09:26 +01:00
|
|
|
version = "2.0.1";
|
2019-02-15 11:44:44 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-14 21:09:26 +01:00
|
|
|
sha256 = "0hvmbc41kdwrjns8z1s4a59a4azdvzb8q3vs7nn1li4qm4l0g3yh";
|
2019-02-15 11:44:44 +00:00
|
|
|
};
|
|
|
|
|
2019-11-06 19:28:15 +00:00
|
|
|
propagatedBuildInputs = lib.optionals isPy27 [ selectors2 ];
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/minrk/wurlitzer";
|
2019-02-15 11:44:44 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2019-11-06 19:28:15 +00:00
|
|
|
}
|