1{ 2 lib, 3 buildPythonPackage, 4 fetchurl, 5 isPy3k, 6 setuptools, 7 colorama, 8 six, 9 texttable, 10 tqdm, 11}: 12 13buildPythonPackage rec { 14 pname = "rbtools"; 15 version = "5.2.1"; 16 format = "setuptools"; 17 18 disabled = !isPy3k; 19 20 src = fetchurl { 21 url = "https://downloads.reviewboard.org/releases/RBTools/${lib.versions.majorMinor version}/RBTools-${version}.tar.gz"; 22 sha256 = "f2863515ef6ff1cfcd3905d5f409ab8c4d12878b364d6f805ba848dcaecb97f2"; 23 }; 24 25 propagatedBuildInputs = [ 26 six 27 texttable 28 tqdm 29 colorama 30 setuptools 31 ]; 32 33 # The kgb test dependency is not in nixpkgs 34 doCheck = false; 35 36 meta = with lib; { 37 homepage = "https://www.reviewboard.org/docs/rbtools/dev/"; 38 description = "RBTools is a set of command line tools for working with Review Board and RBCommons"; 39 mainProgram = "rbt"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ domenkozar ]; 42 }; 43}