2021-05-15 19:42:37 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "prayer-times-calculator";
|
2021-05-27 23:53:28 +01:00
|
|
|
version = "0.0.5";
|
2021-05-15 19:42:37 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uchagani";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-27 23:53:28 +01:00
|
|
|
sha256 = "sha256-wm1r0MK6dx0cJvyQ7ulxvGWyIrNiPV2RXJD/IuKP3+E=";
|
2021-05-15 19:42:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|