Merge pull request #335952 from dotlambda/python3Packages.prayer-times-calculator-offline

python312Packages.prayer-times-calculator-offline: use fetchFromGitHub
This commit is contained in:
Robert Schütz 2024-08-22 15:41:48 -07:00 committed by GitHub
commit 90d96acea9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;