git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.capturer: init at 2.4
commit3d91e7fde081da2a6902e0d959baeb0345136945 authoreyjhbb@gmail.com <eyjhbb@gmail.com> dateTue 23 Jul 2019, 16:59 (7 years ago) parent1de0c32
2 files changed+29
pkgs/development/python-modules/capturer/default.nix+27 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/capturer/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{ lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytest, pytestcov }:
2+
3+buildPythonPackage rec {
4+ pname = "capturer";
5+ version = "2.4";
6+
7+ src = fetchFromGitHub {
8+ owner = "xolox";
9+ repo = "python-capturer";
10+ rev = version;
11+ sha256 = "07zy264xd0g7pz9sxjqcpwmrck334xcbb7wfss26lmvgdr5nhcb9";
12+ };
13+
14+ propagatedBuildInputs = [ humanfriendly ];
15+
16+ checkPhase = ''
17+ PATH=$PATH:$out/bin pytest .
18+ '';
19+ checkInputs = [ pytest ];
20+
21+ meta = with lib; {
22+ description = "Easily capture stdout/stderr of the current process and subprocesses";
23+ homepage = https://github.com/xolox/python-capturer;
24+ license = licenses.mit;
25+ maintainers = with maintainers; [ eyjhb ];
26+ };
27+}
pkgs/top-level/python-packages.nix+2
@@ -1465,6 +1465,8 @@ in {
14651465
14661466 capstone = callPackage ../development/python-modules/capstone { };
14671467
1468+ capturer = callPackage ../development/python-modules/capturer { };
1469+
14681470 cement = callPackage ../development/python-modules/cement {};
14691471
14701472 cgen = callPackage ../development/python-modules/cgen { };