1{ stdenv, fetchurl, pkgconfig, check, cppunit, perl, pythonPackages }:
2
3# NOTE: for subunit python library see pkgs/top-level/python-packages.nix
4
5stdenv.mkDerivation rec {
6 name = "subunit-${version}";
7 version = "1.1.0";
8
9 src = fetchurl {
10 url = "https://launchpad.net/subunit/trunk/${version}/+download/${name}.tar.gz";
11 sha256 = "0lcah7p66c05p7xpw6ns1is0i02lh0nq8gq51mv4wyvbr6zaasa8";
12 };
13
14 nativeBuildInputs = [ pkgconfig ];
15 buildInputs = [ check cppunit perl pythonPackages.wrapPython ];
16
17 propagatedBuildInputs = with pythonPackages; [ testtools testscenarios ];
18
19 postFixup = "wrapPythonPrograms";
20
21 meta = with stdenv.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}