Something went wrong. Try again.
lol
Something went wrong. Try again.
1.1 kB · 54 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, poetry-core, pytest-asyncio, pytest-cov-stub, pytestCheckHook, yarl,}:
buildPythonPackage rec { pname = "gridnet"; version = "5.0.1"; pyproject = true;
src = fetchFromGitHub { owner = "klaasnicolaas"; repo = "python-gridnet"; tag = "v${version}"; hash = "sha256-HVBUAasK7lFsj/tT0j70x/2w4RJtnHWfX/1XbfKKLf8="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace "0.0.0" "${version}" '';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp yarl ];
nativeCheckInputs = [ aresponses pytest-asyncio pytest-cov-stub pytestCheckHook ];
pythonImportsCheck = [ "gridnet" ];
meta = { description = "Asynchronous Python client for NET2GRID devices"; homepage = "https://github.com/klaasnicolaas/python-gridnet"; changelog = "https://github.com/klaasnicolaas/python-gridnet/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; };}