Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 58 lines
Nix
at flake-libs
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, poetry-core, pytest-asyncio, pytestCheckHook, syrupy, pythonOlder, yarl,}:
buildPythonPackage rec { pname = "p1monitor"; version = "3.1.0"; pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub { owner = "klaasnicolaas"; repo = "python-p1monitor"; tag = "v${version}"; hash = "sha256-vr/JLvn593cgZ2KEsfDW1lS4QlGiymr0qZ8130zo6Ec="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace '"0.0.0"' '"${version}"' \ --replace 'addopts = "--cov"' "" '';
build-system = [ poetry-core ];
dependencies = [ aiohttp yarl ];
nativeCheckInputs = [ aresponses pytest-asyncio pytestCheckHook syrupy ];
pythonImportsCheck = [ "p1monitor" ];
meta = with lib; { description = "Module for interacting with the P1 Monitor"; homepage = "https://github.com/klaasnicolaas/python-p1monitor"; changelog = "https://github.com/klaasnicolaas/python-p1monitor/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}