Merge pull request #262486 from fabaff/elgato-bump

python311Packages.elgato: 4.0.1 -> 5.0.0
This commit is contained in:
Fabian Affolter 2023-10-21 14:04:05 +02:00 committed by GitHub
commit ebed643c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,18 +13,25 @@
buildPythonPackage rec {
pname = "elgato";
version = "4.0.1";
version = "5.0.0";
format = "pyproject";
disabled = pythonOlder "3.9";
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "frenck";
repo = "python-elgato";
rev = "refs/tags/v${version}";
hash = "sha256-kyFnc/lMxgYy8s/gAP5vpEPV8a+dphOummr6G7deGQ4=";
hash = "sha256-TI5wu2FYVUMvgDkbktcwPLnTSD8XUSy8qwOCdrsiopk=";
};
postPatch = ''
# Upstream doesn't set a version for the pyproject.toml
substituteInPlace pyproject.toml \
--replace "0.0.0" "${version}" \
--replace "--cov" ""
'';
nativeBuildInputs = [
poetry-core
];
@ -41,13 +48,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
# Upstream doesn't set a version for the pyproject.toml
substituteInPlace pyproject.toml \
--replace "0.0.0" "${version}" \
--replace "--cov" ""
'';
pythonImportsCheck = [
"elgato"
];
@ -55,6 +55,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python client for Elgato Key Lights";
homepage = "https://github.com/frenck/python-elgato";
changelog = "https://github.com/frenck/python-elgato/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};