depot/third_party/nixpkgs/pkgs/development/python-modules/prayer-times-calculator/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

35 lines
744 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "prayer-times-calculator";
version = "0.0.6";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "uchagani";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-0hXbgzEKrWk79Ldd37fqnkOELa+dAGtc80RQfDZ1JTI=";
};
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 ];
};
}