Merge pull request #139599 from fabaff/elkm1-lib
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, poetry-core
|
||||
, pyserial-asyncio
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "elkm1-lib";
|
||||
version = "1.0.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gwww";
|
||||
repo = "elkm1";
|
||||
rev = version;
|
||||
sha256 = "04xidix6l5d9rqfwp6cmj6wvais04nlvz5ynp0zwgyjp9sh2nhp6";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyserial-asyncio
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Switch to poetry-core, https://github.com/gwww/elkm1/pull/45
|
||||
(fetchpatch {
|
||||
name = "switch-to-poetry-core.patch";
|
||||
url = "https://github.com/gwww/elkm1/commit/807a17268498298908bf82af4933b158b37c8f32.patch";
|
||||
sha256 = "1539g8wsxppqj6dm6w81ps05frb8vrfaxahxn2cqs76zdhvly3p9";
|
||||
})
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "elkm1_lib" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module for interacting with ElkM1 alarm/automation panel";
|
||||
homepage = "https://github.com/gwww/elkm1";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -218,7 +218,7 @@
|
||||
"eight_sleep" = ps: with ps; [ pyeight ];
|
||||
"elgato" = ps: with ps; [ elgato ];
|
||||
"eliqonline" = ps: with ps; [ ]; # missing inputs: eliqonline
|
||||
"elkm1" = ps: with ps; [ ]; # missing inputs: elkm1-lib
|
||||
"elkm1" = ps: with ps; [ elkm1-lib ];
|
||||
"elv" = ps: with ps; [ pypca ];
|
||||
"emby" = ps: with ps; [ pyemby ];
|
||||
"emoncms" = ps: with ps; [ ];
|
||||
|
||||
@@ -338,6 +338,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||
"ee_brightbox"
|
||||
"efergy"
|
||||
"elgato"
|
||||
"elkm1"
|
||||
"emonitor"
|
||||
"emulated_hue"
|
||||
"emulated_kasa"
|
||||
|
||||
@@ -2328,6 +2328,8 @@ in {
|
||||
|
||||
elgato = callPackage ../development/python-modules/elgato { };
|
||||
|
||||
elkm1-lib = callPackage ../development/python-modules/elkm1-lib { };
|
||||
|
||||
elasticsearch = callPackage ../development/python-modules/elasticsearch { };
|
||||
|
||||
elasticsearch-dsl = callPackage ../development/python-modules/elasticsearch-dsl { };
|
||||
|
||||
Reference in New Issue
Block a user