Commit 4422a302 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.aioairq: refactor

parent 01c667e0
Loading
Loading
Loading
Loading
+21 −4
Original line number Diff line number Diff line
@@ -3,35 +3,52 @@
, buildPythonPackage
, fetchFromGitHub
, pycryptodome
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "aioairq";
  version = "0.4.2";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "CorantGmbH";
    repo = pname;
    repo = "aioairq";
    rev = "refs/tags/v${version}";
    hash = "sha256-ppjhGBAoA5iV+ZfUKkUCNJRYN82JtclRe36pbe85i5w=";
  };

  propagatedBuildInputs = [
  build-system = [
    setuptools
  ];

  dependencies = [
    aiohttp
    pycryptodome
  ];

  # Module has no tests
  doCheck = false;
  #doCheck = false;

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "aioairq"
  ];

  disabledTestPaths = [
    # Tests require network access
    "tests/test_core_on_device.py"
  ];

  meta = with lib; {
    description = "Library to retrieve data from air-Q devices";
    homepage = "https://github.com/CorantGmbH/aioairq";