Unverified Commit 186d6669 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #313806 from fabaff/pydeconz-bump

python312Packages.pydeconz: 115 -> 116
parents 3cb1f43f bf8a1a8c
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
@@ -9,36 +9,34 @@
  pytestCheckHook,
  pythonOlder,
  setuptools,
  wheel,
}:

buildPythonPackage rec {
  pname = "pydeconz";
  version = "115";
  version = "116";
  pyproject = true;

  disabled = pythonOlder "3.11";
  disabled = pythonOlder "3.12";

  src = fetchFromGitHub {
    owner = "Kane610";
    repo = "deconz";
    rev = "refs/tags/v${version}";
    hash = "sha256-NjzONVSJ4GEaIeC5ytnTi8JpZY1yIq3LN8vbMy3n0vs=";
    hash = "sha256-XtcAs+xKSTJcQN0mCj6ewkT7owvA7nlZ8PhWfL9NZh8=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace "--cov=pydeconz --cov-report term-missing" "" \
      --replace "setuptools==" "setuptools>=" \
      --replace "wheel==" "wheel>="
      --replace-fail "--cov=pydeconz --cov-report term-missing" "" \
      --replace-fail "setuptools==" "setuptools>=" \
      --replace-fail "wheel==" "wheel>="
  '';

  nativeBuildInputs = [
  build-system = [
    setuptools
    wheel
  ];

  propagatedBuildInputs = [
  dependencies = [
    aiohttp
    orjson
  ];
@@ -53,10 +51,10 @@ buildPythonPackage rec {

  meta = with lib; {
    description = "Python library wrapping the Deconz REST API";
    mainProgram = "pydeconz";
    homepage = "https://github.com/Kane610/deconz";
    changelog = "https://github.com/Kane610/deconz/releases/tag/v${version}";
    license = with licenses; [ mit ];
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    mainProgram = "pydeconz";
  };
}