2021-10-11 07:54:18 +02:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "crownstone-sse";
|
2021-11-28 14:01:00 +01:00
|
|
|
version = "2.0.3";
|
2021-10-11 07:54:18 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "crownstone";
|
|
|
|
repo = "crownstone-lib-python-sse";
|
|
|
|
rev = version;
|
2021-11-28 14:01:00 +01:00
|
|
|
sha256 = "sha256-O1joOH7HCXYCro26p6foMMpg0UXfOgXD0BXuN50OK7U=";
|
2021-10-11 07:54:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
certifi
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests are only providing coverage
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"crownstone_sse"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for listening to Crownstone SSE events";
|
|
|
|
homepage = "https://github.com/crownstone/crownstone-lib-python-sse";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|