evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / tesla-powerwall / default.nix
blobb5ce22702ae00676dfbadfa455adb2b3801b0f50
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   aiohttp,
8   urllib3,
9   orjson,
10   aresponses,
11   setuptools,
14 buildPythonPackage rec {
15   pname = "tesla-powerwall";
16   version = "0.5.2";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "jrester";
23     repo = "tesla_powerwall";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-cAsJKFM0i0e7w2T4HP4a5ybJGuDvBAGCGmPEKFzNFAY=";
26   };
28   nativeBuildInputs = [ setuptools ];
30   propagatedBuildInputs = [
31     aiohttp
32     urllib3
33     orjson
34   ];
36   nativeCheckInputs = [
37     aresponses
38     pytestCheckHook
39   ];
41   disabledTests = [
42     # yarl compat issue https://github.com/jrester/tesla_powerwall/issues/68
43     "test_parse_endpoint"
44   ];
46   pytestFlagsArray = [ "tests/unit" ];
48   pythonImportsCheck = [ "tesla_powerwall" ];
50   meta = with lib; {
51     description = "API for Tesla Powerwall";
52     homepage = "https://github.com/jrester/tesla_powerwall";
53     changelog = "https://github.com/jrester/tesla_powerwall/blob/v${version}/CHANGELOG";
54     license = licenses.mit;
55     maintainers = with maintainers; [ dotlambda ];
56   };