diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-09-06 23:56:08 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-09-06 23:56:08 +0200 |
commit | d697b79dcec9636466e01665341e57a063d944ea (patch) | |
tree | 01b4ad4a2bce288ad92925871aaf06286007f30d /pkgs/development/python-modules/youless-api | |
parent | d9de842f58b20c35e4e71831c865e308ed00a8d7 (diff) |
python3Packages.youless-api: init at 0.12
Diffstat (limited to 'pkgs/development/python-modules/youless-api')
-rw-r--r-- | pkgs/development/python-modules/youless-api/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/youless-api/default.nix b/pkgs/development/python-modules/youless-api/default.nix new file mode 100644 index 0000000000000..bce08bddf2b9d --- /dev/null +++ b/pkgs/development/python-modules/youless-api/default.nix @@ -0,0 +1,48 @@ +{ lib +, buildPythonPackage +, fetchFromBitbucket +, pythonOlder +, certifi +, chardet +, idna +, nose +, requests +, six +, urllib3 +}: + +buildPythonPackage rec { + pname = "youless-api"; + version = "0.12"; + + disabled = pythonOlder "3.7"; + + src = fetchFromBitbucket { + owner = "jongsoftdev"; + repo = "youless-python-bridge"; + rev = version; + sha256 = "18hymahpblq87i7lv479sizj8mgxawjhj31g4j1lyna1mds3887k"; + }; + + propagatedBuildInputs = [ + certifi + chardet + idna + requests + six + urllib3 + ]; + + checkInputs = [ + 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 ]; + }; +} |