2021-04-24 03:18:03 +03:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, buildPythonApplication
|
|
|
|
, pbr
|
|
|
|
, requests
|
|
|
|
, setuptools
|
|
|
|
}:
|
2015-11-30 20:57:23 +03:00
|
|
|
|
2020-10-30 01:10:39 +03:00
|
|
|
buildPythonApplication rec {
|
2019-04-26 00:50:43 +03:00
|
|
|
pname = "git-review";
|
2021-04-24 03:18:03 +03:00
|
|
|
version = "2.1.0";
|
2015-11-30 20:57:23 +03:00
|
|
|
|
|
|
|
# Manually set version because prb wants to get it from the git
|
|
|
|
# upstream repository (and we are installing from tarball instead)
|
2019-09-09 02:38:31 +03:00
|
|
|
PBR_VERSION = version;
|
2015-11-30 20:57:23 +03:00
|
|
|
|
2020-10-30 01:10:39 +03:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz";
|
2021-04-24 03:18:03 +03:00
|
|
|
hash = "sha256-3A1T+/iXhNeMS2Aww5jISoiNExdv9N9/kwyATSuwVTE=";
|
2015-11-30 20:57:23 +03:00
|
|
|
};
|
|
|
|
|
2021-04-24 03:18:03 +03:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
];
|
2015-11-30 20:57:23 +03:00
|
|
|
|
2021-04-24 03:18:03 +03:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
setuptools # implicit dependency, used to get package version through pkg_resources
|
|
|
|
];
|
|
|
|
|
|
|
|
# Don't run tests because they pull in external dependencies
|
|
|
|
# (a specific build of gerrit + maven plugins), and I haven't figured
|
|
|
|
# out how to work around this yet.
|
2015-11-30 20:57:23 +03:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-04-24 03:18:03 +03:00
|
|
|
pythonImportsCheck = [ "git_review" ];
|
|
|
|
|
2020-10-30 01:10:39 +03:00
|
|
|
meta = with lib; {
|
2015-11-30 20:57:23 +03:00
|
|
|
description = "Tool to submit code to Gerrit";
|
2021-04-24 03:18:03 +03:00
|
|
|
homepage = "https://opendev.org/opendev/git-review";
|
2020-10-30 01:10:39 +03:00
|
|
|
license = licenses.asl20;
|
2021-05-22 17:47:40 +03:00
|
|
|
maintainers = with maintainers; [ kira-bruneau ];
|
2015-11-30 20:57:23 +03:00
|
|
|
};
|
|
|
|
}
|