Merge pull request #126047 from fabaff/elgato
This commit is contained in:
commit
108e2f26a6
4 changed files with 60 additions and 1 deletions
56
pkgs/development/python-modules/elgato/default.nix
Normal file
56
pkgs/development/python-modules/elgato/default.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, aiohttp
|
||||
, poetry-core
|
||||
, yarl
|
||||
, aresponses
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "elgato";
|
||||
version = "2.1.1";
|
||||
disabled = pythonOlder "3.8";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "frenck";
|
||||
repo = "python-elgato";
|
||||
rev = "v${version}";
|
||||
sha256 = "19z568jjyww7vi8s44anrb66qjz5l22nz4jqcz49ybhf22warmff";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
yarl
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aresponses
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Upstream doesn't set a version for the pyproject.toml
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "0.0.0" "${version}" \
|
||||
--replace "--cov" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "elgato" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client for Elgato Key Lights";
|
||||
homepage = "https://github.com/frenck/python-elgato";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -213,7 +213,7 @@
|
|||
"efergy" = ps: with ps; [ ];
|
||||
"egardia" = ps: with ps; [ pythonegardia ];
|
||||
"eight_sleep" = ps: with ps; [ pyeight ];
|
||||
"elgato" = ps: with ps; [ ]; # missing inputs: elgato
|
||||
"elgato" = ps: with ps; [ elgato ];
|
||||
"eliqonline" = ps: with ps; [ ]; # missing inputs: eliqonline
|
||||
"elkm1" = ps: with ps; [ ]; # missing inputs: elkm1-lib
|
||||
"elv" = ps: with ps; [ ]; # missing inputs: pypca
|
||||
|
|
|
@ -368,6 +368,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"econet"
|
||||
"ee_brightbox"
|
||||
"efergy"
|
||||
"elgato"
|
||||
"emonitor"
|
||||
"emulated_hue"
|
||||
"enphase_envoy"
|
||||
|
|
|
@ -2239,6 +2239,8 @@ in {
|
|||
|
||||
eggdeps = callPackage ../development/python-modules/eggdeps { };
|
||||
|
||||
elgato = callPackage ../development/python-modules/elgato { };
|
||||
|
||||
elasticsearch = callPackage ../development/python-modules/elasticsearch { };
|
||||
|
||||
elasticsearch-dsl = callPackage ../development/python-modules/elasticsearch-dsl { };
|
||||
|
|
Loading…
Reference in a new issue