depot/third_party/nixpkgs/pkgs/development/python-modules/prayer-times-calculator/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

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 ];
};
}