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