2021-08-05 21:33:18 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, check, cppunit, perl, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# NOTE: for subunit python library see pkgs/top-level/python-packages.nix
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "subunit";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/subunit/trunk/${version}/+download/${pname}-${version}.tar.gz";
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-hlOOv6kIC97w7ICVsuXeWrsUbVu3tCSzEVKUHXYG2dI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-08-05 21:33:18 +00:00
|
|
|
buildInputs = [ check cppunit perl python3Packages.wrapPython ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [ testtools testscenarios ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postFixup = "wrapPythonPrograms";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A streaming protocol for test results";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "subunit-diff";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://launchpad.net/subunit";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|