4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
49 lines
837 B
Nix
49 lines
837 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromBitbucket
|
|
, pythonOlder
|
|
, certifi
|
|
, chardet
|
|
, idna
|
|
, nose
|
|
, requests
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "youless-api";
|
|
version = "1.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromBitbucket {
|
|
owner = "jongsoftdev";
|
|
repo = "youless-python-bridge";
|
|
rev = version;
|
|
hash = "sha256-49/HmkGr87aDhr8GEtARpXvr2RcgmLdAqhvMLI5x+vQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
certifi
|
|
chardet
|
|
idna
|
|
requests
|
|
urllib3
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
nose
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"youless_api"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for YouLess sensors";
|
|
homepage = "https://pypi.org/project/youless-api/";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|