nixpkgs/pkgs/development/python-modules/wurlitzer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
595 B
Nix
Raw Normal View History

2019-02-15 11:44:44 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
2019-02-15 11:44:44 +00:00
, mock
, pytest
, selectors2
2019-02-15 11:44:44 +00:00
}:
buildPythonPackage rec {
pname = "wurlitzer";
version = "3.0.2";
2019-02-15 11:44:44 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "36051ac530ddb461a86b6227c4b09d95f30a1d1043de2b4a592e97ae8a84fcdf";
2019-02-15 11:44:44 +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";
homepage = "https://github.com/minrk/wurlitzer";
2019-02-15 11:44:44 +00:00
license = lib.licenses.mit;
};
}