Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 aresponses, 6 backoff, 7 buildPythonPackage, 8 fetchFromGitHub, 9 poetry-core, 10 pytest-asyncio, 11 pytestCheckHook, 12 pythonOlder, 13}: 14 15buildPythonPackage rec { 16 pname = "tesla-wall-connector"; 17 version = "1.0.2"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "einarhauks"; 24 repo = pname; 25 rev = version; 26 hash = "sha256-GblKXWV9h37E3bxNsx17hEe0uDm8ahzJUx8wiE+Vc38="; 27 }; 28 29 nativeBuildInputs = [ poetry-core ]; 30 31 propagatedBuildInputs = [ 32 aiohttp 33 backoff 34 ]; 35 36 nativeCheckInputs = [ 37 aresponses 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ "tesla_wall_connector" ]; 43 44 meta = with lib; { 45 description = "Library for communicating with a Tesla Wall Connector"; 46 homepage = "https://github.com/einarhauks/tesla-wall-connector"; 47 license = with licenses; [ mit ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}