Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "pythonegardia"; 10 version = "1.0.52"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.8"; 14 15 src = fetchFromGitHub { 16 owner = "jeroenterheerdt"; 17 repo = "python-egardia"; 18 rev = "refs/tags/v${version}"; 19 sha256 = "sha256-lQ/7tH74MllwFe2kF5OcYSb4rQd+yJU1W6ztG4Z6Y0U="; 20 }; 21 22 propagatedBuildInputs = [ 23 requests 24 ]; 25 26 # Project has no tests, only two test file for manual interaction 27 doCheck = false; 28 29 pythonImportsCheck = [ 30 "pythonegardia" 31 ]; 32 33 meta = with lib; { 34 description = "Python interface with Egardia/Woonveilig alarms"; 35 homepage = "https://github.com/jeroenterheerdt/python-egardia"; 36 changelog = "https://github.com/jeroenterheerdt/python-egardia/releases/tag/v${version}"; 37 license = with licenses; [ mit ]; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}