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

home-assistant: support islamic_prayer_times component
This commit is contained in:
Martin Weinelt
2024-08-11 21:15:00 +02:00
committed by GitHub
5 changed files with 37 additions and 42 deletions
@@ -0,0 +1,32 @@
{
buildPythonPackage,
fetchPypi,
lib,
setuptools,
}:
buildPythonPackage rec {
pname = "prayer-times-calculator-offline";
version = "1.0.3";
pyproject = true;
src = fetchPypi {
pname = "prayer_times_calculator_offline";
inherit version;
hash = "sha256-vmy1hYZXuDvdjjBN5YivzP+lcwfE86Z9toBzj+kyj14=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "prayer_times_calculator_offline" ];
# upstream has no tests
doCheck = false;
meta = {
description = "Prayer Times Calculator - Offline";
homepage = "https://github.com/cpfair/prayer-times-calculator-offline";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
@@ -1,40 +0,0 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "prayer-times-calculator";
version = "0.0.12";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "uchagani";
repo = "prayer-times-calculator";
rev = "refs/tags/${version}";
hash = "sha256-HeGUnApQZ12aieaV/UBbJqqpEn4i/ZZKw41H/Yx3+cY=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ requests ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "prayer_times_calculator" ];
meta = with lib; {
description = "Python client for the Prayer Times API";
homepage = "https://github.com/uchagani/prayer-times-calculator";
changelog = "https://github.com/uchagani/prayer-times-calculator/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -1993,7 +1993,8 @@
isal
];
"islamic_prayer_times" = ps: with ps; [
]; # missing inputs: prayer-times-calculator-offline
prayer-times-calculator-offline
];
"ismartwindow" = ps: with ps; [
];
"israel_rail" = ps: with ps; [
@@ -5185,6 +5186,7 @@
"iqvia"
"iron_os"
"isal"
"islamic_prayer_times"
"israel_rail"
"ista_ecotrend"
"isy994"
+1
View File
@@ -371,6 +371,7 @@ mapAliases ({
poster3 = throw "poster3 is unmaintained and source is no longer available"; # added 2023-05-29
postorius = throw "Please use pkgs.mailmanPackages.postorius"; # added 2022-04-29
powerlineMemSegment = powerline-mem-segment; # added 2021-10-08
prayer-times-calculator = prayer-times-calculator-offline; # added 2024-08-11
privacyidea-ldap-proxy = throw "privacyidea-ldap-proxy has been removed from nixpkgs"; # added 2023-10-31
proboscis = throw "proboscis has been removed since it has not been maintained for 11 years"; # added 2024-05-20
prometheus_client = prometheus-client; # added 2021-06-10
+1 -1
View File
@@ -10718,7 +10718,7 @@ self: super: with self; {
praw = callPackage ../development/python-modules/praw { };
prayer-times-calculator = callPackage ../development/python-modules/prayer-times-calculator { };
prayer-times-calculator-offline = callPackage ../development/python-modules/prayer-times-calculator-offline { };
precis-i18n = callPackage ../development/python-modules/precis-i18n { };