nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchPypi,
6 certifi,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "crownstone-cloud";
13 version = "1.4.11";
14 pyproject = true;
15
16 src = fetchPypi {
17 pname = "crownstone_cloud";
18 inherit version;
19 hash = "sha256-s84pK52uMupxQfdMldV14V3nj+yVku1Vw13CRX4o08U=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 aiohttp
26 certifi
27 ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "crownstone_cloud" ];
32
33 meta = {
34 description = "Python module for communicating with Crownstone Cloud and devices";
35 homepage = "https://github.com/Crownstone-Community/crownstone-lib-python-cloud";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ fab ];
38 };
39}