4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
36 lines
851 B
Nix
36 lines
851 B
Nix
{ lib, stdenv
|
|
, buildPythonPackage
|
|
, fetchurl
|
|
, isPy3k
|
|
, setuptools
|
|
, colorama
|
|
, six
|
|
, texttable
|
|
, tqdm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rbtools";
|
|
version = "1.0.2";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.reviewboard.org/releases/RBTools/${stdenv.lib.versions.majorMinor version}/RBTools-${version}.tar.gz";
|
|
sha256 = "577c2f8bbf88f77bda84ee95af0310b59111c156f48a5aab56ca481e2f77eaf4";
|
|
};
|
|
|
|
propagatedBuildInputs = [ six texttable tqdm colorama setuptools ];
|
|
|
|
# The kgb test dependency is not in nixpkgs
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.reviewboard.org/docs/rbtools/dev/";
|
|
description = "RBTools is a set of command line tools for working with Review Board and RBCommons";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
};
|
|
|
|
}
|