summary refs log tree commit diff
path: root/pkgs/development/python-modules/wurlitzer/default.nix
blob: 8a4d96515d7c877d58590fbcca55f266eeeafe01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib
, buildPythonPackage
, fetchPypi
, mock
, pytest
}:

buildPythonPackage rec {
  pname = "wurlitzer";
  version = "2.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0xndv47iwc9k8cp5r9r1z3r0xww0r5x5b7qsmn39gk2gsg0119c6";
  };

  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;
  };
}