Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 requests, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "prayer-times-calculator"; 12 version = "0.0.12"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "uchagani"; 19 repo = "prayer-times-calculator"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-HeGUnApQZ12aieaV/UBbJqqpEn4i/ZZKw41H/Yx3+cY="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 propagatedBuildInputs = [ requests ]; 27 28 # Project has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ "prayer_times_calculator" ]; 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}