Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 68 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ lib, aiohttp, buildPythonPackage, fetchFromGitHub, freezegun, orjson, pydevccu, pytest-aiohttp, pytest-socket, pytestCheckHook, python-slugify, pythonOlder, setuptools, voluptuous,}:
buildPythonPackage rec { pname = "hahomematic"; version = "2025.6.0"; pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub { owner = "SukramJ"; repo = "hahomematic"; tag = version; hash = "sha256-1gZ0TWBFDe+RN5Rb3dUEZyEsy1kyR8Qhlpj9eJRuh60="; };
__darwinAllowLocalNetworking = true;
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools==80.9.0" "setuptools" \ '';
build-system = [ setuptools ];
dependencies = [ aiohttp orjson python-slugify voluptuous ];
nativeCheckInputs = [ freezegun pydevccu pytest-aiohttp pytest-socket pytestCheckHook ];
pythonImportsCheck = [ "hahomematic" ];
meta = with lib; { description = "Python module to interact with HomeMatic devices"; homepage = "https://github.com/SukramJ/hahomematic"; changelog = "https://github.com/SukramJ/hahomematic/blob/${src.tag}/changelog.md"; license = licenses.mit; maintainers = with maintainers; [ dotlambda fab ]; };}