depot/third_party/nixpkgs/pkgs/development/python-modules/prayer-times-calculator/default.nix

36 lines
744 B
Nix
Raw Normal View History

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