1{ lib
2, aiohttp
3, asynctest
4, buildPythonPackage
5, fetchFromGitHub
6, certifi
7, pythonOlder
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "crownstone-cloud";
13 version = "1.4.9";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "crownstone";
20 repo = "crownstone-lib-python-cloud";
21 rev = version;
22 sha256 = "sha256-CS1zeQiWPnsGCWixCsN9sz08mPORW5sVqIpSFPh0Qt0=";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 asynctest
28 certifi
29 ];
30
31 checkInputs = [
32 pytestCheckHook
33 ];
34
35 postPatch = ''
36 sed -i '/codecov/d' requirements.txt
37 '';
38
39 pythonImportsCheck = [
40 "crownstone_cloud"
41 ];
42
43 meta = with lib; {
44 description = "Python module for communicating with Crownstone Cloud and devices";
45 homepage = "https://github.com/crownstone/crownstone-lib-python-cloud";
46 license = with licenses; [ mit ];
47 maintainers = with maintainers; [ fab ];
48 };
49}