Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / capturer / default.nix
blob082c765b39dc5ac7dc858cee77bffc1195d75ab8
1 { stdenv, lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytestCheckHook }:
3 buildPythonPackage rec {
4   pname = "capturer";
5   version = "3.0";
7   src = fetchFromGitHub {
8     owner = "xolox";
9     repo = "python-capturer";
10     rev = version;
11     sha256 = "0fwrxa049gzin5dck7fvwhdp1856jrn0d7mcjcjsd7ndqvhgvjj1";
12   };
14   propagatedBuildInputs = [ humanfriendly ];
16   # hangs on darwin
17   doCheck = !stdenv.isDarwin;
18   nativeCheckInputs = [ pytestCheckHook ];
20   meta = with lib; {
21     description = "Easily capture stdout/stderr of the current process and subprocesses";
22     homepage = "https://github.com/xolox/python-capturer";
23     license = licenses.mit;
24     maintainers = with maintainers; [ eyjhb ];
25   };