fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
40 lines
933 B
Nix
40 lines
933 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 ];
|
|
};
|
|
}
|