Merge pull request #109664 from fabaff/adext

This commit is contained in:
Sandro 2021-01-17 23:32:42 +01:00 committed by GitHub
commit 611bf53476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, alarmdecoder
}:
buildPythonPackage rec {
pname = "adext";
version = "0.3";
src = fetchPypi {
inherit pname version;
sha256 = "184qxw6i5ixnhgkjnby4zwn4jg90mxb8xy9vbg80x5w331p4z50f";
};
postPatch = ''
substituteInPlace setup.py \
--replace "alarmdecoder==1.13.2" "alarmdecoder>=1.13.2"
'';
propagatedBuildInputs = [ alarmdecoder ];
# Tests are not published yet
doCheck = false;
pythonImportsCheck = [ "adext" ];
meta = with lib; {
description = "Python extension for AlarmDecoder";
homepage = "https://github.com/ajschmidt8/adext";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -19,7 +19,7 @@
"airvisual" = ps: with ps; [ pyairvisual ];
"aladdin_connect" = ps: with ps; [ ]; # missing inputs: aladdin_connect
"alarm_control_panel" = ps: with ps; [ ];
"alarmdecoder" = ps: with ps; [ ]; # missing inputs: adext
"alarmdecoder" = ps: with ps; [ adext ];
"alert" = ps: with ps; [ ];
"alexa" = ps: with ps; [ aiohttp-cors ];
"almond" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pyalmond

View File

@ -174,6 +174,8 @@ in {
addic7ed-cli = callPackage ../development/python-modules/addic7ed-cli { };
adext = callPackage ../development/python-modules/adext { };
adguardhome = callPackage ../development/python-modules/adguardhome { };
advantage-air = callPackage ../development/python-modules/advantage-air { };