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

python313Packages.pyvera: refactor

parent fb02e835
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -8,24 +8,27 @@
  pytest-timeout,
  responses,
  pytestCheckHook,
  pythonOlder,
  requests,
}:

buildPythonPackage rec {
  pname = "pyvera";
  version = "0.3.16";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.11";

  src = fetchFromGitHub {
    owner = "pavoni";
    repo = pname;
    repo = "pyvera";
    tag = version;
    hash = "sha256-WLzVOQEykST2BsVRHmcBhrsd/am0jI/f7D0PmpCTbdQ=";
  };

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

  propagatedBuildInputs = [ requests ];
  dependencies = [ requests ];

  nativeCheckInputs = [
    pytest-asyncio
@@ -40,7 +43,8 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Python library to control devices via the Vera hub";
    homepage = "https://github.com/pavoni/pyvera";
    license = with licenses; [ gpl2Only ];
    changelog = "https://github.com/maximvelichko/pyvera/releases/tag/${version}";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ fab ];
  };
}