587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
45 lines
943 B
Nix
45 lines
943 B
Nix
{ 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 ];
|
|
};
|
|
}
|