1{ lib, stdenv, fetchurl, pkg-config, check, cppunit, perl, python3Packages }:
2
3# NOTE: for subunit python library see pkgs/top-level/python-packages.nix
4
5stdenv.mkDerivation rec {
6 pname = "subunit";
7 version = "1.4.2";
8
9 src = fetchurl {
10 url = "https://launchpad.net/subunit/trunk/${version}/+download/${pname}-${version}.tar.gz";
11 hash = "sha256-hlOOv6kIC97w7ICVsuXeWrsUbVu3tCSzEVKUHXYG2dI=";
12 };
13
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ check cppunit perl python3Packages.wrapPython ];
16
17 propagatedBuildInputs = with python3Packages; [ testtools testscenarios ];
18
19 postFixup = "wrapPythonPrograms";
20
21 meta = with lib; {
22 description = "A streaming protocol for test results";
23 homepage = "https://launchpad.net/subunit";
24 license = licenses.asl20;
25 platforms = platforms.all;
26 };
27}