Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, requests 6}: 7 8buildPythonPackage rec { 9 pname = "prayer-times-calculator"; 10 version = "0.0.8"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "uchagani"; 17 repo = pname; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-Zk7lzZUfojJrsrLRS9cf9AhEfGGsxZJo2MnIIOv6Ezk="; 20 }; 21 22 propagatedBuildInputs = [ 23 requests 24 ]; 25 26 # Project has no tests 27 doCheck = false; 28 29 pythonImportsCheck = [ 30 "prayer_times_calculator" 31 ]; 32 33 meta = with lib; { 34 description = "Python client for the Prayer Times API"; 35 homepage = "https://github.com/uchagani/prayer-times-calculator"; 36 changelog = "https://github.com/uchagani/prayer-times-calculator/releases/tag/${version}"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}