Merge pull request #120114 from fabaff/hyperion-py
This commit is contained in:
commit
49c56ee39e
52
pkgs/development/python-modules/hyperion-py/default.nix
Normal file
52
pkgs/development/python-modules/hyperion-py/default.nix
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{ lib
|
||||||
|
, aiohttp
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, poetry-core
|
||||||
|
, pytest-aiohttp
|
||||||
|
, pytest-asyncio
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "hyperion-py";
|
||||||
|
version = "0.7.4";
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "dermotduffy";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "00x12ppmvlxs3qbdxq06wnzakvwm2m39qhmpp27qfpl137b0qqyj";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-aiohttp
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace " --timeout=9 --cov=hyperion" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "hyperion" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python package for Hyperion Ambient Lighting";
|
||||||
|
homepage = "https://github.com/dermotduffy/hyperion-py";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -373,7 +373,7 @@
|
|||||||
"hunterdouglas_powerview" = ps: with ps; [ ]; # missing inputs: aiopvapi
|
"hunterdouglas_powerview" = ps: with ps; [ ]; # missing inputs: aiopvapi
|
||||||
"hvv_departures" = ps: with ps; [ ]; # missing inputs: pygti
|
"hvv_departures" = ps: with ps; [ ]; # missing inputs: pygti
|
||||||
"hydrawise" = ps: with ps; [ hydrawiser ];
|
"hydrawise" = ps: with ps; [ hydrawiser ];
|
||||||
"hyperion" = ps: with ps; [ ]; # missing inputs: hyperion-py
|
"hyperion" = ps: with ps; [ hyperion-py ];
|
||||||
"iammeter" = ps: with ps; [ ]; # missing inputs: iammeter
|
"iammeter" = ps: with ps; [ ]; # missing inputs: iammeter
|
||||||
"iaqualink" = ps: with ps; [ iaqualink ];
|
"iaqualink" = ps: with ps; [ iaqualink ];
|
||||||
"icloud" = ps: with ps; [ pyicloud ];
|
"icloud" = ps: with ps; [ pyicloud ];
|
||||||
|
@ -261,6 +261,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||||||
"html5"
|
"html5"
|
||||||
"http"
|
"http"
|
||||||
"hue"
|
"hue"
|
||||||
|
"hyperion"
|
||||||
"iaqualink"
|
"iaqualink"
|
||||||
"ifttt"
|
"ifttt"
|
||||||
"image"
|
"image"
|
||||||
|
@ -3247,6 +3247,8 @@ in {
|
|||||||
|
|
||||||
hyperframe = callPackage ../development/python-modules/hyperframe { };
|
hyperframe = callPackage ../development/python-modules/hyperframe { };
|
||||||
|
|
||||||
|
hyperion-py = callPackage ../development/python-modules/hyperion-py { };
|
||||||
|
|
||||||
hyperkitty = callPackage ../servers/mail/mailman/hyperkitty.nix { };
|
hyperkitty = callPackage ../servers/mail/mailman/hyperkitty.nix { };
|
||||||
|
|
||||||
hyperlink = callPackage ../development/python-modules/hyperlink { };
|
hyperlink = callPackage ../development/python-modules/hyperlink { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user