Merge pull request #126047 from fabaff/elgato

This commit is contained in:
Sandro 2021-06-18 11:55:10 +02:00 committed by GitHub
commit 108e2f26a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 1 deletions

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

View file

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

View file

@ -368,6 +368,7 @@ in with py.pkgs; buildPythonApplication rec {
"econet"
"ee_brightbox"
"efergy"
"elgato"
"emonitor"
"emulated_hue"
"enphase_envoy"

View file

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