Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 69 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, poetry-core, pytest-aiohttp, pytest-asyncio, pytestCheckHook, python-engineio, python-socketio, pythonOlder, websockets}:
buildPythonPackage rec { pname = "aioambient"; version = "2023.04.0"; format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "bachya"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-ar2UGSlVukMD5EZsEn7TFfIOovaI+B3Ym+UeGo95oks="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace 'websockets = ">=11.0.1"' 'websockets = "*"' '';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp python-engineio python-socketio websockets ];
nativeCheckInputs = [ aresponses pytest-aiohttp pytest-asyncio pytestCheckHook ];
# Ignore the examples directory as the files are prefixed with test_ disabledTestPaths = [ "examples/" ];
pythonImportsCheck = [ "aioambient" ];
meta = with lib; { description = "Python library for the Ambient Weather API"; homepage = "https://github.com/bachya/aioambient"; changelog = "https://github.com/bachya/aioambient/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };}