mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 03:25:36 +00:00
gcalcli: normalize source
Co-authored-by: Robert Schütz <mail@dotlambda.de>
This commit is contained in:
parent
02f40d422c
commit
fcfb3a1106
@ -2,29 +2,30 @@
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
python3,
|
||||
libnotify ? null,
|
||||
python3Packages,
|
||||
libnotify,
|
||||
}:
|
||||
|
||||
with python3.pkgs;
|
||||
|
||||
buildPythonApplication rec {
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "gcalcli";
|
||||
version = "4.3.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "insanum";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0s5fhcmz3n0dwh3vkqr4aigi59q43v03ch5jhh6v75149icwr0df";
|
||||
repo = "gcalcli";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-roHMWUwklLMNhLJANsAeBKcSX1Qk47kH5A3Y8SuDrmg=";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString stdenv.isLinux ''
|
||||
substituteInPlace gcalcli/argparsers.py \
|
||||
--replace "'notify-send" "'${libnotify}/bin/notify-send"
|
||||
--replace-fail "'notify-send" "'${lib.getExe libnotify}"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = with python3Packages; [ setuptools ];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
python-dateutil
|
||||
gflags
|
||||
httplib2
|
||||
@ -37,7 +38,7 @@ buildPythonApplication rec {
|
||||
libnotify
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "CLI for Google Calendar";
|
||||
|
Loading…
Reference in New Issue
Block a user