From 59e2925fab6b4c8f0b8d0f29c94b962ec79dead9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 19 Aug 2024 17:28:29 -0700 Subject: [PATCH] python312Packages.prayer-times-calculator-offline: use fetchFromGitHub --- .../prayer-times-calculator-offline/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/prayer-times-calculator-offline/default.nix b/pkgs/development/python-modules/prayer-times-calculator-offline/default.nix index 976620c5dc5d..dfaf77528d26 100644 --- a/pkgs/development/python-modules/prayer-times-calculator-offline/default.nix +++ b/pkgs/development/python-modules/prayer-times-calculator-offline/default.nix @@ -1,6 +1,6 @@ { buildPythonPackage, - fetchPypi, + fetchFromGitHub, lib, setuptools, }: @@ -10,10 +10,11 @@ buildPythonPackage rec { version = "1.0.3"; pyproject = true; - src = fetchPypi { - pname = "prayer_times_calculator_offline"; - inherit version; - hash = "sha256-vmy1hYZXuDvdjjBN5YivzP+lcwfE86Z9toBzj+kyj14="; + src = fetchFromGitHub { + owner = "cpfair"; + repo = "prayer-times-calculator-offline"; + rev = "refs/tags/v${version}"; + hash = "sha256-sVEdjtwxwGa354YimeaNqjqZ9yEecNXg8kk6Pafvvd4="; }; build-system = [ setuptools ]; @@ -24,6 +25,7 @@ buildPythonPackage rec { doCheck = false; meta = { + changelog = "https://github.com/cpfair/prayer-times-calculator-offline/releases/tag/v${version}"; description = "Prayer Times Calculator - Offline"; homepage = "https://github.com/cpfair/prayer-times-calculator-offline"; license = lib.licenses.mit;