nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 48 lines 908 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytz, 7 websockets, 8 pytest-asyncio, 9 pytest-mock, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "bluecurrent-api"; 15 version = "1.3.3"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "bluecurrent"; 20 repo = "HomeAssistantAPI"; 21 tag = "v${version}"; 22 hash = "sha256-px4kZOvMUP5aGOQ1uxWnY6w77Woie/hVVdyylW8uSX4="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ 28 pytz 29 websockets 30 ]; 31 32 pythonRelaxDeps = [ "websockets" ]; 33 34 pythonImportsCheck = [ "bluecurrent_api" ]; 35 36 nativeCheckInputs = [ 37 pytest-asyncio 38 pytest-mock 39 pytestCheckHook 40 ]; 41 42 meta = { 43 description = "Wrapper for the Blue Current websocket api"; 44 homepage = "https://github.com/bluecurrent/HomeAssistantAPI"; 45 license = lib.licenses.mit; 46 maintainers = with lib.maintainers; [ dotlambda ]; 47 }; 48}