Merge pull request #109666 from fabaff/pyblackbird

This commit is contained in:
Sandro 2021-01-17 23:30:04 +01:00 committed by GitHub
commit 572d7366b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 1 deletions

View File

@ -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 ];
};
}

View File

@ -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 ];

View File

@ -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 { };