1be0098156
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
35 lines
744 B
Nix
35 lines
744 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "prayer-times-calculator";
|
|
version = "0.0.7";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "uchagani";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-fIfv10oi5Lv1dj5Y5CYI94/UdWG3bAY/ENCiMTkO0RE=";
|
|
};
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|