From f3a2bf7109ca8f8676de3a3e683ff8ee83132221 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Fri, 23 Apr 2021 20:18:03 -0400 Subject: [PATCH] git-review: 2.0.0 -> 2.1.0 --- .../version-management/git-review/default.nix | 29 +++++++++++++++---- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/version-management/git-review/default.nix b/pkgs/applications/version-management/git-review/default.nix index 042bdc2a19d..38eed2dd5af 100644 --- a/pkgs/applications/version-management/git-review/default.nix +++ b/pkgs/applications/version-management/git-review/default.nix @@ -1,8 +1,14 @@ -{ lib, fetchurl, buildPythonApplication, pbr, requests, setuptools }: +{ lib +, fetchurl +, buildPythonApplication +, pbr +, requests +, setuptools +}: buildPythonApplication rec { pname = "git-review"; - version = "2.0.0"; + version = "2.1.0"; # Manually set version because prb wants to get it from the git # upstream repository (and we are installing from tarball instead) @@ -10,17 +16,28 @@ buildPythonApplication rec { src = fetchurl { url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz"; - sha256 = "0dkyd5g2xmvsa114is3cd9qmki3hi6c06wjnra0f4xq3aqm0ajnj"; + hash = "sha256-3A1T+/iXhNeMS2Aww5jISoiNExdv9N9/kwyATSuwVTE="; }; - propagatedBuildInputs = [ pbr requests setuptools ]; + nativeBuildInputs = [ + pbr + ]; - # Don't do tests because they require gerrit which is not packaged + 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. doCheck = false; + pythonImportsCheck = [ "git_review" ]; + meta = with lib; { - homepage = "https://opendev.org/opendev/git-review"; description = "Tool to submit code to Gerrit"; + homepage = "https://opendev.org/opendev/git-review"; license = licenses.asl20; maintainers = with maintainers; [ metadark ]; };