Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 65 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools, setuptools-scm,
# dependencies httpx, pycryptodome,
# tests pytestCheckHook,}:
buildPythonPackage rec { pname = "msmart-ng"; version = "2025.7.0"; pyproject = true;
src = fetchFromGitHub { owner = "mill1000"; repo = "midea-msmart"; tag = version; hash = "sha256-4CqdAgWkpkZ4Kz/GfLBvZ/ogb/tb3/NPGSxOpyU9CIo="; };
build-system = [ setuptools setuptools-scm ];
dependencies = [ httpx pycryptodome ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [ # broken in upstream CI as well "test_properties_cascade" ];
disabledTestPaths = [ # network access "msmart/tests/test_cloud.py" ];
pythonImportsCheck = [ "msmart" ];
meta = with lib; { changelog = "https://github.com/mill1000/midea-msmart/releases/tag/${src.tag}"; description = "Python library for local control of Midea (and associated brands) smart air conditioners"; homepage = "https://github.com/mill1000/midea-msmart"; license = licenses.mit; mainProgram = "msmart-ng"; maintainers = with maintainers; [ hexa emilylange ]; };}