Merge pull request #110399 from fabaff/avion

This commit is contained in:
Sandro 2021-01-28 18:39:36 +01:00 committed by GitHub
commit d0300e7713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 105 additions and 1 deletions

View File

@ -0,0 +1,37 @@
{ lib
, bluepy
, buildPythonPackage
, csrmesh
, fetchPypi
, pycryptodome
, requests
}:
buildPythonPackage rec {
pname = "avion";
version = "0.10";
src = fetchPypi {
inherit pname version;
sha256 = "0zgv45086b97ngyqxdp41wxb7hpn9g7alygc21j9y3dib700vzdz";
};
propagatedBuildInputs = [
bluepy
csrmesh
pycryptodome
requests
];
# Project has no test
doCheck = false;
# bluepy/uuids.json is not found
# pythonImportsCheck = [ "avion" ];
meta = with lib; {
description = "Python API for controlling Avi-on Bluetooth dimmers";
homepage = "https://github.com/mjg59/python-avion";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,29 @@
{ lib
, bluepy
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "bluepy-devices";
version = "0.2.1";
src = fetchPypi {
pname = "bluepy_devices";
inherit version;
sha256 = "02zzzivxq2vifgs65m2rm8pqlsbzsbc419c032irzvfxjx539mr8";
};
propagatedBuildInputs = [ bluepy ];
# Project has no test
doCheck = false;
pythonImportsCheck = [ "bluepy_devices" ];
meta = with lib; {
description = "Python BTLE Device Interface for bluepy";
homepage = "https://github.com/bimbar/bluepy_devices";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,32 @@
{ lib
, bluepy
, buildPythonPackage
, fetchPypi
, pycryptodomex
}:
buildPythonPackage rec {
pname = "csrmesh";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "03lzam54ypcfvqvikh3gsrivvlidmz1ifdq15xv8c5i3n5b178ag";
};
propagatedBuildInputs = [
bluepy
pycryptodomex
];
# Project has no test
doCheck = false;
pythonImportsCheck = [ "csrmesh" ];
meta = with lib; {
description = "Python implementation of the CSRMesh bridge protocol";
homepage = "https://github.com/nkaminski/csrmesh";
license = with licenses; [ lgpl3Only ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -61,7 +61,7 @@
"auth" = ps: with ps; [ aiohttp-cors ];
"automation" = ps: with ps; [ aiohttp-cors ];
"avea" = ps: with ps; [ avea ];
"avion" = ps: with ps; [ ]; # missing inputs: avion
"avion" = ps: with ps; [ avion ];
"awair" = ps: with ps; [ ]; # missing inputs: python_awair
"aws" = ps: with ps; [ aiobotocore ];
"axis" = ps: with ps; [ aiohttp-cors axis paho-mqtt ];

View File

@ -557,6 +557,8 @@ in {
avea = callPackage ../development/python-modules/avea { };
avion = callPackage ../development/python-modules/avion { };
avro3k = callPackage ../development/python-modules/avro3k { };
avro = callPackage ../development/python-modules/avro { };
@ -997,6 +999,8 @@ in {
bluepy = callPackage ../development/python-modules/bluepy { };
bluepy-devices = callPackage ../development/python-modules/bluepy-devices { };
bme680 = callPackage ../development/python-modules/bme680 { };
bokeh = callPackage ../development/python-modules/bokeh { };
@ -1507,6 +1511,8 @@ in {
crytic-compile = callPackage ../development/python-modules/crytic-compile { };
csrmesh = callPackage ../development/python-modules/csrmesh { };
csscompressor = callPackage ../development/python-modules/csscompressor { };
cssmin = callPackage ../development/python-modules/cssmin { };