13 buildPythonPackage rec {
14 pname = "lektricowifi";
18 src = fetchFromGitHub {
20 repo = "lektricowifi";
21 rev = "refs/tags/v.${version}";
22 hash = "sha256-NwM1WpH6tS0iAVpG2gSFJpDPPn9nECHAzpOnWzeYPH4=";
26 substituteInPlace tests/test_mocked_devices.py \
27 --replace-fail "from asyncmock import AsyncMock" "from unittest.mock import AsyncMock"
30 build-system = [ setuptools ];
42 pythonImportsCheck = [ "lektricowifi" ];
49 # AttributeError: type object 'InfoForCharger' has no attribute 'from_dict'
53 description = "Communication with Lektrico's chargers";
54 homepage = "https://github.com/Lektrico/lektricowifi";
55 license = lib.licenses.mit;
56 maintainers = with lib.maintainers; [ dotlambda ];