mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
goobook: move to top-level
This commit is contained in:
parent
126db443ed
commit
ed9a5b9855
4 changed files with 20 additions and 30 deletions
|
@ -1,46 +1,39 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
|
||||||
fetchFromGitLab,
|
fetchFromGitLab,
|
||||||
pythonOlder,
|
|
||||||
docutils,
|
docutils,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
poetry-core,
|
python3Packages,
|
||||||
google-api-python-client,
|
|
||||||
simplejson,
|
|
||||||
oauth2client,
|
|
||||||
setuptools,
|
|
||||||
pyxdg,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "goobook";
|
pname = "goobook";
|
||||||
version = "3.5.2";
|
version = "3.5.2";
|
||||||
|
pyproject = true;
|
||||||
format = "pyproject";
|
|
||||||
disabled = pythonOlder "3.7";
|
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "goobook";
|
owner = "goobook";
|
||||||
repo = "goobook";
|
repo = "goobook";
|
||||||
rev = version;
|
tag = version;
|
||||||
hash = "sha256-gWmeRlte+lP7VP9gbPuMHwhVkx91wQ0GpQFQRLJ29h8=";
|
hash = "sha256-gWmeRlte+lP7VP9gbPuMHwhVkx91wQ0GpQFQRLJ29h8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
build-system = with python3Packages; [
|
||||||
substituteInPlace pyproject.toml \
|
poetry-core
|
||||||
--replace 'setuptools = "^62.6.0"' 'setuptools = "*"' \
|
];
|
||||||
--replace 'google-api-python-client = "^1.7.12"' 'google-api-python-client = "*"' \
|
|
||||||
--replace 'pyxdg = "^0.28"' 'pyxdg = "*"'
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
docutils
|
docutils
|
||||||
installShellFiles
|
installShellFiles
|
||||||
poetry-core
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
pythonRelaxDeps = [
|
||||||
|
"google-api-python-client"
|
||||||
|
"pyxdg"
|
||||||
|
"setuptools"
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = with python3Packages; [
|
||||||
google-api-python-client
|
google-api-python-client
|
||||||
simplejson
|
simplejson
|
||||||
oauth2client
|
oauth2client
|
||||||
|
@ -58,7 +51,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
pythonImportsCheck = [ "goobook" ];
|
pythonImportsCheck = [ "goobook" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Access your Google contacts from the command line";
|
description = "Access your Google contacts from the command line";
|
||||||
mainProgram = "goobook";
|
mainProgram = "goobook";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -66,9 +59,9 @@ buildPythonPackage rec {
|
||||||
from the command-line and from MUAs such as Mutt.
|
from the command-line and from MUAs such as Mutt.
|
||||||
It can be used from Mutt the same way as abook.
|
It can be used from Mutt the same way as abook.
|
||||||
'';
|
'';
|
||||||
homepage = "https://pypi.org/project/goobook/";
|
homepage = "https://gitlab.com/goobook/goobook";
|
||||||
changelog = "https://gitlab.com/goobook/goobook/-/blob/${version}/CHANGES.rst";
|
changelog = "https://gitlab.com/goobook/goobook/-/blob/${src.tag}/CHANGES.rst";
|
||||||
license = licenses.gpl3;
|
license = lib.licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ primeos ];
|
maintainers = with lib.maintainers; [ primeos ];
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -14043,8 +14043,6 @@ with pkgs;
|
||||||
|
|
||||||
luddite = with python3Packages; toPythonApplication luddite;
|
luddite = with python3Packages; toPythonApplication luddite;
|
||||||
|
|
||||||
goobook = with python3Packages; toPythonApplication goobook;
|
|
||||||
|
|
||||||
lumail = callPackage ../applications/networking/mailreaders/lumail {
|
lumail = callPackage ../applications/networking/mailreaders/lumail {
|
||||||
lua = lua5_1;
|
lua = lua5_1;
|
||||||
};
|
};
|
||||||
|
|
|
@ -272,6 +272,7 @@ mapAliases ({
|
||||||
glances = throw "glances has moved to pkgs.glances"; # added 2020-20-28
|
glances = throw "glances has moved to pkgs.glances"; # added 2020-20-28
|
||||||
glasgow = throw "glasgow has been promoted to a top-level attribute name: `pkgs.glasgow`"; # added 2023-02-05
|
glasgow = throw "glasgow has been promoted to a top-level attribute name: `pkgs.glasgow`"; # added 2023-02-05
|
||||||
globre = throw "globre was removed, because it was disabled on all python version since 3.7 and last updated in 2020."; # added 2024-05-13
|
globre = throw "globre was removed, because it was disabled on all python version since 3.7 and last updated in 2020."; # added 2024-05-13
|
||||||
|
goobook = throw "goobook has been promoted to a top-level attribute name: `pkgs.goobook`"; # Added 2025-03-25
|
||||||
google-reauth = throw "google-reauth has been removed because the upstream repository was archived in 2023"; # Added 2024-10-04
|
google-reauth = throw "google-reauth has been removed because the upstream repository was archived in 2023"; # Added 2024-10-04
|
||||||
google_api_python_client = google-api-python-client; # added 2021-03-19
|
google_api_python_client = google-api-python-client; # added 2021-03-19
|
||||||
googleapis_common_protos = googleapis-common-protos; # added 2021-03-19
|
googleapis_common_protos = googleapis-common-protos; # added 2021-03-19
|
||||||
|
|
|
@ -5594,8 +5594,6 @@ self: super: with self; {
|
||||||
|
|
||||||
gocardless-pro = callPackage ../development/python-modules/gocardless-pro { };
|
gocardless-pro = callPackage ../development/python-modules/gocardless-pro { };
|
||||||
|
|
||||||
goobook = callPackage ../development/python-modules/goobook { };
|
|
||||||
|
|
||||||
goocalendar = callPackage ../development/python-modules/goocalendar { };
|
goocalendar = callPackage ../development/python-modules/goocalendar { };
|
||||||
|
|
||||||
goodwe = callPackage ../development/python-modules/goodwe { };
|
goodwe = callPackage ../development/python-modules/goodwe { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue