Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, buildPythonPackage 4, certifi 5, fetchFromGitHub 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "crownstone-sse"; 11 version = "2.0.4"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "crownstone"; 18 repo = "crownstone-lib-python-sse"; 19 rev = version; 20 hash = "sha256-z/z8MmydHkHubwuX02gGbOcOEZ+FHX4i82vAK5gAl+c="; 21 }; 22 23 propagatedBuildInputs = [ 24 aiohttp 25 certifi 26 ]; 27 28 # Tests are only providing coverage 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "crownstone_sse" 33 ]; 34 35 meta = with lib; { 36 description = "Python module for listening to Crownstone SSE events"; 37 homepage = "https://github.com/crownstone/crownstone-lib-python-sse"; 38 license = with licenses; [ mit ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}