python3Packages.elgato: init at 2.1.1

This commit is contained in:
Fabian Affolter 2021-06-07 09:36:11 +02:00
parent b26545db7e
commit 0e9014624e
2 changed files with 58 additions and 0 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

@ -2233,6 +2233,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 { };