nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 certifi,
6 fetchPypi,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "crownstone-sse";
12 version = "2.0.5";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "crownstone_sse";
17 inherit version;
18 hash = "sha256-RUqo68UAVGV+JmauKsGlp7dG8FzixHBDnr3eho/IQdY=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [
24 aiohttp
25 certifi
26 ];
27
28 # Tests are only providing coverage
29 doCheck = false;
30
31 pythonImportsCheck = [ "crownstone_sse" ];
32
33 meta = {
34 description = "Python module for listening to Crownstone SSE events";
35 homepage = "https://github.com/Crownstone-Community/crownstone-lib-python-sse";
36 license = with lib.licenses; [ mit ];
37 maintainers = with lib.maintainers; [ fab ];
38 };
39}