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