linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / wurlitzer / default.nix
blobe6897830fb7b7b184dee131361d6ec6e9834f4d4
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , isPy27
5 , mock
6 , pytest
7 , selectors2
8 }:
10 buildPythonPackage rec {
11   pname = "wurlitzer";
12   version = "2.0.1";
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "0hvmbc41kdwrjns8z1s4a59a4azdvzb8q3vs7nn1li4qm4l0g3yh";
17   };
19   propagatedBuildInputs = lib.optionals isPy27 [ selectors2 ];
21   checkInputs = [ mock pytest ];
23   checkPhase = ''
24     py.test test.py
25   '';
27   meta = {
28     description = "Capture C-level output in context managers";
29     homepage = "https://github.com/minrk/wurlitzer";
30     license = lib.licenses.mit;
31   };