2021-01-23 16:29:22 -08:00
|
|
|
{ lib
|
2018-10-26 08:56:53 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchurl
|
|
|
|
, isPy3k
|
2020-02-06 02:54:16 -08:00
|
|
|
, setuptools
|
|
|
|
, colorama
|
|
|
|
, six
|
|
|
|
, texttable
|
|
|
|
, tqdm
|
2018-10-26 08:56:53 -07:00
|
|
|
}:
|
|
|
|
|
2020-02-06 02:54:16 -08:00
|
|
|
buildPythonPackage rec {
|
2018-11-04 15:32:52 -08:00
|
|
|
pname = "rbtools";
|
2020-02-06 02:54:16 -08:00
|
|
|
version = "1.0.2";
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2018-10-26 08:56:53 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-23 16:29:22 -08:00
|
|
|
url = "https://downloads.reviewboard.org/releases/RBTools/${lib.versions.majorMinor version}/RBTools-${version}.tar.gz";
|
2020-02-06 02:54:16 -08:00
|
|
|
sha256 = "577c2f8bbf88f77bda84ee95af0310b59111c156f48a5aab56ca481e2f77eaf4";
|
2018-10-26 08:56:53 -07:00
|
|
|
};
|
|
|
|
|
2020-02-06 02:54:16 -08:00
|
|
|
propagatedBuildInputs = [ six texttable tqdm colorama setuptools ];
|
2018-10-26 08:56:53 -07:00
|
|
|
|
2020-02-06 02:54:16 -08:00
|
|
|
# The kgb test dependency is not in nixpkgs
|
|
|
|
doCheck = false;
|
2018-10-26 08:56:53 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://www.reviewboard.org/docs/rbtools/dev/";
|
2018-10-26 08:56:53 -07:00
|
|
|
description = "RBTools is a set of command line tools for working with Review Board and RBCommons";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|