Merge pull request #126975 from dotlambda/blebox-uniapi-init

This commit is contained in:
Sandro 2021-06-16 04:12:11 +02:00 committed by GitHub
commit 56e1dac7c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 1 deletions

View file

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp
, semver
, asynctest
, deepmerge
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "blebox-uniapi";
version = "1.3.3";
src = fetchFromGitHub {
owner = "blebox";
repo = "blebox_uniapi";
rev = "v${version}";
sha256 = "0qvv2697yhqjmgvh37h8wgz3a77n61kqmxvsk4pf47wn43hks15c";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
propagatedBuildInputs = [
aiohttp
semver
];
checkInputs = [
asynctest
deepmerge
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "blebox_uniapi" ];
meta = with lib; {
description = "Python API for accessing BleBox smart home devices";
homepage = "https://github.com/blebox/blebox_uniapi";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -81,7 +81,7 @@
"bitcoin" = ps: with ps; [ blockchain ];
"bizkaibus" = ps: with ps; [ ]; # missing inputs: bizkaibus
"blackbird" = ps: with ps; [ pyblackbird ];
"blebox" = ps: with ps; [ ]; # missing inputs: blebox_uniapi
"blebox" = ps: with ps; [ blebox-uniapi ];
"blink" = ps: with ps; [ ]; # missing inputs: blinkpy
"blinksticklight" = ps: with ps; [ BlinkStick ];
"blinkt" = ps: with ps; [ ]; # missing inputs: blinkt

View file

@ -307,6 +307,7 @@ in with py.pkgs; buildPythonApplication rec {
"bayesian"
"binary_sensor"
"blackbird"
"blebox"
"blueprint"
"bluetooth_le_tracker"
"bond"

View file

@ -1101,6 +1101,8 @@ in {
bleak = callPackage ../development/python-modules/bleak { };
blebox-uniapi = callPackage ../development/python-modules/blebox-uniapi { };
blessed = callPackage ../development/python-modules/blessed { };
blessings = callPackage ../development/python-modules/blessings { };