evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / plugwise / default.nix
blob8bfa57692252dbb9a0a77ce64031d8fbfdb5f959
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   defusedxml,
6   fetchFromGitHub,
7   freezegun,
8   jsonpickle,
9   munch,
10   pytest-aiohttp,
11   pytest-asyncio,
12   pytestCheckHook,
13   python-dateutil,
14   pythonOlder,
15   setuptools,
18 buildPythonPackage rec {
19   pname = "plugwise";
20   version = "1.5.0";
21   pyproject = true;
23   disabled = pythonOlder "3.11";
25   src = fetchFromGitHub {
26     owner = "plugwise";
27     repo = "python-plugwise";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-WcoHK8UZ7qOVoUBCSoTDZ+6fC568AyXFCBys/7sjJx8=";
30   };
32   postPatch = ''
33     # setuptools and wheel
34     sed -i -e "s/~=[0-9.]*//g" pyproject.toml
35   '';
37   build-system = [ setuptools ];
39   dependencies = [
40     aiohttp
41     defusedxml
42     munch
43     python-dateutil
44   ];
46   nativeCheckInputs = [
47     freezegun
48     jsonpickle
49     pytest-aiohttp
50     pytest-asyncio
51     pytestCheckHook
52   ];
54   pythonImportsCheck = [ "plugwise" ];
56   __darwinAllowLocalNetworking = true;
58   meta = with lib; {
59     description = "Python module for Plugwise Smiles, Stretch and USB stick";
60     homepage = "https://github.com/plugwise/python-plugwise";
61     changelog = "https://github.com/plugwise/python-plugwise/releases/tag/v${version}";
62     license = with licenses; [ mit ];
63     maintainers = with maintainers; [ fab ];
64   };