Files
nixpkgs/pkgs/development/python-modules/msmart-ng/default.nix
T
emilylange 85f8ed8bea python313Packages.msmart-ng: drop no longer needed PEP 639 revert
At the time, setuptools did not yet implement PEP 639. This has changed
with the release of setuptools v77.0.0, which has since landed in
nixpkgs. As such, this patch is no longer needed.

Ref: 7605633c21
2025-05-31 18:20:06 +02:00

61 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# dependencies
httpx,
pycryptodome,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "msmart-ng";
version = "2025.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mill1000";
repo = "midea-msmart";
tag = version;
hash = "sha256-dZD93ZZiQLmWuMAR/nnYB7oGBBYr4YPEi+LdpSzweVc=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
httpx
pycryptodome
];
nativeCheckInputs = [ pytestCheckHook ];
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
];
};
}