nixpkgs-suyu/pkgs/applications/version-management/git-review/default.nix
R. RyanTM f3a8e772a5 git-review: 1.26.0 -> 1.27.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
2018-10-15 22:04:05 -07:00

30 lines
896 B
Nix

{ stdenv, fetchurl, pythonPackages} :
pythonPackages.buildPythonApplication rec {
name = "git-review-${version}";
version = "1.27.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}";
postPatch = ''
sed -i -e '/argparse/d' requirements.txt
'';
src = fetchurl rec {
url = "https://github.com/openstack-infra/git-review/archive/${version}.tar.gz";
sha256 = "0smdkps9avnj58izyfc5m0amq8nafgs9iqlyaf7ncrlvypia1f3q";
};
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;
};
}