2021-10-14 00:43:12 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, certifi
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "crownstone-cloud";
|
2021-10-17 09:34:42 +00:00
|
|
|
version = "1.4.8";
|
2021-10-14 00:43:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "crownstone";
|
|
|
|
repo = "crownstone-lib-python-cloud";
|
2021-10-17 09:34:42 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-iHn4g52/QM0TS/flKkcFrX6IFrCjiXUxcjVLHNg6tVo=";
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
asynctest
|
|
|
|
certifi
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/crownstone/crownstone-lib-python-cloud/issues/1
|
|
|
|
"test_data_structure"
|
|
|
|
];
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
postPatch = ''
|
2021-10-17 09:34:42 +00:00
|
|
|
sed -i '/codecov/d' requirements.txt
|
2021-10-14 00:43:12 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"crownstone_cloud"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for communicating with Crownstone Cloud and devices";
|
|
|
|
homepage = "https://github.com/crownstone/crownstone-lib-python-cloud";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|