1{ lib
2, buildPythonPackage
3, fetchFromBitbucket
4, pythonOlder
5, certifi
6, chardet
7, idna
8, nose
9, requests
10, six
11, urllib3
12}:
13
14buildPythonPackage rec {
15 pname = "youless-api";
16 version = "0.15";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromBitbucket {
22 owner = "jongsoftdev";
23 repo = "youless-python-bridge";
24 rev = version;
25 sha256 = "sha256-77uQUAPDCFQiCpNAI0feOtHq82sE0n70IV1Njn/W29M=";
26 };
27
28 propagatedBuildInputs = [
29 certifi
30 chardet
31 idna
32 requests
33 six
34 urllib3
35 ];
36
37 checkInputs = [
38 nose
39 ];
40
41 pythonImportsCheck = [
42 "youless_api"
43 ];
44
45 meta = with lib; {
46 description = "Python library for YouLess sensors";
47 homepage = "https://pypi.org/project/youless-api/";
48 license = with licenses; [ mit ];
49 maintainers = with maintainers; [ fab ];
50 };
51}