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