nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 42 lines 755 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, pytestCheckHook 6, responses 7}: 8 9buildPythonPackage rec { 10 pname = "tesla-powerwall"; 11 version = "0.3.17"; 12 13 format = "setuptools"; 14 15 src = fetchPypi { 16 pname = "tesla_powerwall"; 17 inherit version; 18 sha256 = "09351e408e8e3cc03414944c1a487ef2178300829559e80835026acb84330cfd"; 19 }; 20 21 propagatedBuildInputs = [ 22 requests 23 ]; 24 25 checkInputs = [ 26 pytestCheckHook 27 responses 28 ]; 29 30 pytestFlagsArray = [ 31 "tests/unit" 32 ]; 33 34 pythonImportsCheck = [ "tesla_powerwall" ]; 35 36 meta = { 37 description = "API for Tesla Powerwall"; 38 homepage = "https://github.com/jrester/tesla_powerwall"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ dotlambda ]; 41 }; 42}