ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / crownstone-cloud / default.nix
blob8b02eaa589613e87d113c10c4a26f813aa721885
1 { lib
2 , aiohttp
3 , asynctest
4 , buildPythonPackage
5 , fetchFromGitHub
6 , certifi
7 , pythonOlder
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "crownstone-cloud";
13   version = "1.4.9";
14   format = "setuptools";
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "crownstone";
20     repo = "crownstone-lib-python-cloud";
21     rev = version;
22     sha256 = "sha256-CS1zeQiWPnsGCWixCsN9sz08mPORW5sVqIpSFPh0Qt0=";
23   };
25   propagatedBuildInputs = [
26     aiohttp
27     asynctest
28     certifi
29   ];
31   checkInputs = [
32     pytestCheckHook
33   ];
35   postPatch = ''
36     sed -i '/codecov/d' requirements.txt
37   '';
39   pythonImportsCheck = [
40     "crownstone_cloud"
41   ];
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   };