nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "pysensibo";
10 version = "1.0.14";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "andrey-git";
17 repo = pname;
18 rev = version;
19 hash = "sha256-r2YIQ6JPyRWzfXprj3tFwrsAR0NtmVLncWZAsLkAzSA=";
20 };
21
22 propagatedBuildInputs = [
23 aiohttp
24 ];
25
26 # no tests implemented
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "pysensibo"
31 ];
32
33 meta = with lib; {
34 description = "Module for interacting with Sensibo";
35 homepage = "https://github.com/andrey-git/pysensibo";
36 license = licenses.mit;
37 maintainers = with maintainers; [ fab ];
38 };
39}