Merge pull request #109666 from fabaff/pyblackbird
This commit is contained in:
commit
572d7366b7
|
@ -0,0 +1,34 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pyserial
|
||||
, pyserial-asyncio
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyblackbird";
|
||||
version = "0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "koolsb";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0m1yd1cb3z8011x7nicxpf091bdcwghcphn0l21c65f71rabzg6s";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyserial
|
||||
pyserial-asyncio
|
||||
];
|
||||
|
||||
# Test setup try to create a serial port
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pyblackbird" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python implementation for Monoprice Blackbird units";
|
||||
homepage = "https://github.com/koolsb/pyblackbird";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -77,7 +77,7 @@
|
|||
"binary_sensor" = ps: with ps; [ ];
|
||||
"bitcoin" = ps: with ps; [ blockchain ];
|
||||
"bizkaibus" = ps: with ps; [ ]; # missing inputs: bizkaibus
|
||||
"blackbird" = ps: with ps; [ ]; # missing inputs: pyblackbird
|
||||
"blackbird" = ps: with ps; [ pyblackbird ];
|
||||
"blebox" = ps: with ps; [ ]; # missing inputs: blebox_uniapi
|
||||
"blink" = ps: with ps; [ ]; # missing inputs: blinkpy
|
||||
"blinksticklight" = ps: with ps; [ BlinkStick ];
|
||||
|
|
|
@ -5139,6 +5139,8 @@ in {
|
|||
|
||||
pybindgen = callPackage ../development/python-modules/pybindgen { };
|
||||
|
||||
pyblackbird = callPackage ../development/python-modules/pyblackbird { };
|
||||
|
||||
pyblake2 = callPackage ../development/python-modules/pyblake2 { };
|
||||
|
||||
pyblock = callPackage ../development/python-modules/pyblock { };
|
||||
|
|
Loading…
Reference in New Issue