2021-07-27 16:36:51 +02:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, check, cppunit, perl, python3Packages }:
|
2015-05-10 11:39:42 +02:00
|
|
|
|
|
|
|
# NOTE: for subunit python library see pkgs/top-level/python-packages.nix
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "subunit";
|
2020-03-26 03:09:35 +01:00
|
|
|
version = "1.4.0";
|
2015-05-10 11:39:42 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://launchpad.net/subunit/trunk/${version}/+download/${pname}-${version}.tar.gz";
|
2020-03-26 03:09:35 +01:00
|
|
|
sha256 = "1h7i5ifcx20qkya24j11nbwa829klw7dvnlljdgivgvcx6b20y80";
|
2015-05-10 11:39:42 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-07-27 16:36:51 +02:00
|
|
|
buildInputs = [ check cppunit perl python3Packages.wrapPython ];
|
2015-05-10 11:39:42 +02:00
|
|
|
|
2021-07-27 16:36:51 +02:00
|
|
|
propagatedBuildInputs = with python3Packages; [ testtools testscenarios ];
|
2015-05-10 11:39:42 +02:00
|
|
|
|
|
|
|
postFixup = "wrapPythonPrograms";
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2015-05-10 11:39:42 +02:00
|
|
|
description = "A streaming protocol for test results";
|
2020-03-26 03:09:35 +01:00
|
|
|
homepage = "https://launchpad.net/subunit";
|
2015-05-10 11:39:42 +02:00
|
|
|
license = licenses.asl20;
|
2015-11-10 21:45:06 +01:00
|
|
|
platforms = platforms.all;
|
2015-05-10 11:39:42 +02:00
|
|
|
};
|
|
|
|
}
|