From a46a61e39caa9736fbff66cf9f2437028b6217f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 4 Nov 2025 07:27:58 -0800 Subject: [PATCH] python3Packages.aiohomematic-test-support: init at 2025.11.5 --- .../aiohomematic-test-support/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/aiohomematic-test-support/default.nix diff --git a/pkgs/development/python-modules/aiohomematic-test-support/default.nix b/pkgs/development/python-modules/aiohomematic-test-support/default.nix new file mode 100644 index 000000000000..4121f93725a2 --- /dev/null +++ b/pkgs/development/python-modules/aiohomematic-test-support/default.nix @@ -0,0 +1,28 @@ +{ + aiohomematic, + buildPythonPackage, + setuptools, +}: + +buildPythonPackage rec { + pname = "aiohomematic-test-support"; + inherit (aiohomematic) version src; + pyproject = true; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'dynamic = ["version"]' 'version = "${version}"' + ''; + + sourceRoot = "${src.name}/aiohomematic_test_support"; + + build-system = [ setuptools ]; + + pythonImportsCheck = [ "aiohomematic_test_support" ]; + + meta = { + description = "Support-only package for AioHomematic (tests/dev)"; + homepage = "https://github.com/SukramJ/aiohomematic/tree/devel/aiohomematic_test_support"; + inherit (aiohomematic.meta) license maintainers; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 41059f238981..f22805eed7cc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -296,6 +296,8 @@ self: super: with self; { aiohomematic = callPackage ../development/python-modules/aiohomematic { }; + aiohomematic-test-support = callPackage ../development/python-modules/aiohomematic-test-support { }; + aiohttp = callPackage ../development/python-modules/aiohttp { }; aiohttp-apispec = callPackage ../development/python-modules/aiohttp-apispec { };