Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 57 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, fetchFromGitHub, aiohttp, backoff, yarl, aresponses, pytest-asyncio, pytestCheckHook,}:
buildPythonPackage rec { pname = "aiomodernforms"; version = "0.1.8"; format = "setuptools";
src = fetchFromGitHub { owner = "wonderslug"; repo = "aiomodernforms"; rev = "v${version}"; hash = "sha256-Vx51WBjjNPIfLlwMnAuwHnGNljhnjKkU0tWB9M9rjsw="; };
postPatch = '' substituteInPlace aiomodernforms/modernforms.py --replace-fail \ "with async_timeout.timeout(self._request_timeout):" \ "async with async_timeout.timeout(self._request_timeout):" '';
propagatedBuildInputs = [ aiohttp backoff yarl ];
nativeCheckInputs = [ aresponses pytest-asyncio pytestCheckHook ];
disabledTests = [ # https://github.com/wonderslug/aiomodernforms/issues/273 "test_connection_error" "test_empty_response" ];
pythonImportsCheck = [ "aiomodernforms" ];
meta = with lib; { description = "Asynchronous Python client for Modern Forms fans"; homepage = "https://github.com/wonderslug/aiomodernforms"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; };}