forked from mirrors/nixpkgs
e7f46f34f6
* git-review: 1.27.0 -> 1.28.0 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/git-review/versions * git-review: refactor - do not use fetchurl on mutable GitHub archives - postPatch is unneeded as argparse has been removed from requirements.txt upstream
29 lines
814 B
Nix
29 lines
814 B
Nix
{ stdenv, fetchFromGitHub, pythonPackages} :
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
pname = "git-review";
|
|
version = "1.28.0";
|
|
|
|
# Manually set version because prb wants to get it from the git
|
|
# upstream repository (and we are installing from tarball instead)
|
|
PBR_VERSION = "${version}";
|
|
|
|
src = fetchFromGitHub rec {
|
|
owner = "openstack-infra";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1hgw1dkl94m3idv4izc7wf2j7al2c7nnsqywy7g53nzkv9pfv47s";
|
|
};
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ pbr requests setuptools ];
|
|
|
|
# Don't do tests because they require gerrit which is not packaged
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
homepage = https://github.com/openstack-infra/git-review;
|
|
description = "Tool to submit code to Gerrit";
|
|
license = stdenv.lib.licenses.asl20;
|
|
};
|
|
}
|