Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 57 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, poetry-core, aiohttp, yarl, aresponses, pytest-asyncio, pytestCheckHook}:
buildPythonPackage rec { pname = "gridnet"; version = "4.2.0";
disabled = pythonOlder "3.9";
format = "pyproject";
src = fetchFromGitHub { owner = "klaasnicolaas"; repo = "python-gridnet"; rev = "refs/tags/v${version}"; hash = "sha256-Enld68P9Cyq9Au4bsZQqPV26TL72pcmIm/Vg1DnheLk="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace "0.0.0" "${version}" \ --replace "--cov" "" '';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp yarl ];
nativeCheckInputs = [ aresponses pytest-asyncio pytestCheckHook ];
pythonImportsCheck = [ "gridnet" ];
meta = with lib; { description = "Asynchronous Python client for NET2GRID devices"; homepage = "https://github.com/klaasnicolaas/python-gridnet"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; };}