nixpkgs-suyu/pkgs/applications/misc/moz-phab/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildPythonApplication
, fetchPypi
, mercurial
# build inputs
, distro
, glean-sdk
, python-hglib
, sentry-sdk
, setuptools
}:
buildPythonApplication rec {
2021-11-19 18:25:50 +01:00
pname = "moz-phab";
version = "0.1.99";
src = fetchPypi {
2021-11-19 18:25:50 +01:00
pname = "MozPhab";
inherit version;
sha256 = "sha256-uKoMMSp5AIvB1qTRYAh7n1+2dDLneFbssfkfTTshfcs=";
};
# Relax python-hglib requirement
# https://phabricator.services.mozilla.com/D131618
postPatch = ''
substituteInPlace setup.py \
--replace "==" ">="
'';
propagatedBuildInputs = [
distro
glean-sdk
python-hglib
sentry-sdk
setuptools
];
checkInputs = [
mercurial
];
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Phabricator CLI from Mozilla to support submission of a series of commits";
longDescription = ''
moz-phab is a custom command-line tool, which communicates to
Phabricators API, providing several conveniences, including support for
submitting series of commits.
'';
homepage = "https://moz-conduit.readthedocs.io/en/latest/phabricator-user.html";
license = licenses.mpl20;
maintainers = [ maintainers.kvark ];
2021-11-19 18:25:50 +01:00
platforms = platforms.unix;
};
}