evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pymelcloud / default.nix
blobd859da4ff22ac203e9e1c881c2232469f5562b11
2   lib,
3   aiohttp,
4   asynctest,
5   buildPythonPackage,
6   fetchFromGitHub,
7   pytest-asyncio,
8   pytestCheckHook,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "pymelcloud";
14   version = "2.11.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "vilppuvuorinen";
21     repo = pname;
22     rev = "v${version}";
23     sha256 = "1q6ny58cn9qy86blxbk6l2iklab7y11b734l7yb1bp35dmy27w26";
24   };
26   propagatedBuildInputs = [ aiohttp ];
28   doCheck = pythonOlder "3.11"; # asynctest is unsupported on python3.11
30   nativeCheckInputs = [
31     asynctest
32     pytest-asyncio
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [ "pymelcloud" ];
38   meta = with lib; {
39     description = "Python module for interacting with MELCloud";
40     homepage = "https://github.com/vilppuvuorinen/pymelcloud";
41     license = with licenses; [ mit ];
42     maintainers = with maintainers; [ fab ];
43   };