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 { };