mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-05 03:57:58 +03: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,
|
stdenv,
|
||||||
lib,
|
lib,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
python3,
|
python3Packages,
|
||||||
libnotify ? null,
|
libnotify,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with python3.pkgs;
|
python3Packages.buildPythonApplication rec {
|
||||||
|
|
||||||
buildPythonApplication rec {
|
|
||||||
pname = "gcalcli";
|
pname = "gcalcli";
|
||||||
version = "4.3.0";
|
version = "4.3.0";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "insanum";
|
owner = "insanum";
|
||||||
repo = pname;
|
repo = "gcalcli";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "0s5fhcmz3n0dwh3vkqr4aigi59q43v03ch5jhh6v75149icwr0df";
|
hash = "sha256-roHMWUwklLMNhLJANsAeBKcSX1Qk47kH5A3Y8SuDrmg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = lib.optionalString stdenv.isLinux ''
|
postPatch = lib.optionalString stdenv.isLinux ''
|
||||||
substituteInPlace gcalcli/argparsers.py \
|
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
|
python-dateutil
|
||||||
gflags
|
gflags
|
||||||
httplib2
|
httplib2
|
||||||
@ -37,7 +38,7 @@ buildPythonApplication rec {
|
|||||||
libnotify
|
libnotify
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "CLI for Google Calendar";
|
description = "CLI for Google Calendar";
|
||||||
|
Loading…
Reference in New Issue
Block a user