evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / midea-beautiful-air / default.nix
blob6b589b3343693a2a2e5604b02a79bc6a1d282eb2
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   cryptography,
7   requests,
8   pytestCheckHook,
9   pytest-socket,
10   requests-mock,
13 buildPythonPackage rec {
14   pname = "midea-beautiful-air";
15   version = "0.10.5";
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "nbogojevic";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-786Q085bv8Zsm0c55I4XalRhEfwElRTJds5qnb0cWhk=";
23   };
25   build-system = [ setuptools ];
27   dependencies = [
28     cryptography
29     requests
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34     pytest-socket
35     requests-mock
36   ];
38   disabledTestPaths = [
39     # tests optional dependencies + network
40     "tests/test_cli.py"
41   ];
43   pythonImportsCheck = [ "midea_beautiful" ];
45   meta = with lib; {
46     description = "Python client for accessing Midea air conditioners and dehumidifiers (Midea, Comfee, Inventor EVO) via local network";
47     homepage = "https://github.com/nbogojevic/midea-beautiful-air";
48     changelog = "https://github.com/nbogojevic/midea-beautiful-air/releases/tag/v${version}";
49     maintainers = with maintainers; [ k900 ];
50     mainProgram = "midea-beautiful-air-cli";
51     license = licenses.mit;
52   };