Unverified Commit fde5a42e authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

python312Packages.elgato: refactor (#386762)

parents 8ccc2513 6cbdd89a
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
  orjson,
  poetry-core,
  pytest-asyncio,
  pytest-cov-stub,
  pytestCheckHook,
  pythonOlder,
  yarl,
@@ -16,7 +17,7 @@
buildPythonPackage rec {
  pname = "elgato";
  version = "5.1.2";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.11";

@@ -31,12 +32,11 @@ buildPythonPackage rec {
    # Upstream doesn't set a version for the pyproject.toml
    substituteInPlace pyproject.toml \
      --replace "0.0.0" "${version}" \
      --replace "--cov" ""
  '';

  nativeBuildInputs = [ poetry-core ];
  build-system = [ poetry-core ];

  propagatedBuildInputs = [
  dependencies = [
    aiohttp
    mashumaro
    orjson
@@ -46,6 +46,7 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    aresponses
    pytest-asyncio
    pytest-cov-stub
    pytestCheckHook
  ];

@@ -55,7 +56,7 @@ buildPythonPackage rec {
    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 ];
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}