2021-10-10 21:34:14 +01:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, certifi
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "crownstone-cloud";
|
2021-11-10 09:32:42 +00:00
|
|
|
version = "1.4.9";
|
2021-10-10 21:34:14 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "crownstone";
|
|
|
|
repo = "crownstone-lib-python-cloud";
|
2021-10-17 01:55:08 +01:00
|
|
|
rev = version;
|
2021-11-10 09:32:42 +00:00
|
|
|
sha256 = "sha256-CS1zeQiWPnsGCWixCsN9sz08mPORW5sVqIpSFPh0Qt0=";
|
2021-10-10 21:34:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
asynctest
|
|
|
|
certifi
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-10-17 01:55:08 +01:00
|
|
|
sed -i '/codecov/d' requirements.txt
|
2021-10-10 21:34:14 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|