Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 60 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ stdenv, lib, fetchFromGitHub, buildPythonPackage, objgraph, psutil, pytestCheckHook, pytest-codspeed, pytest-cov-stub, setuptools,}:
buildPythonPackage (finalAttrs: { pname = "multidict"; version = "6.7.1"; pyproject = true;
src = fetchFromGitHub { owner = "aio-libs"; repo = "multidict"; tag = "v${finalAttrs.version}"; hash = "sha256-HOQRfSxf0+HeXsV4ShwfUDjNVyg2SjNuE157JLRlAL0="; };
postPatch = '' # `python3 -I -c "import multidict"` fails with ModuleNotFoundError substituteInPlace tests/test_circular_imports.py \ --replace-fail '"-I",' "" '';
build-system = [ setuptools ];
env = lib.optionalAttrs stdenv.cc.isClang { NIX_CFLAGS_COMPILE = "-Wno-error=unused-command-line-argument"; };
nativeCheckInputs = [ objgraph psutil pytestCheckHook pytest-codspeed pytest-cov-stub ];
preCheck = '' # import from $out rm -r multidict '';
pythonImportsCheck = [ "multidict" ];
meta = { changelog = "https://github.com/aio-libs/multidict/blob/${finalAttrs.src.tag}/CHANGES.rst"; description = "Multidict implementation"; homepage = "https://github.com/aio-libs/multidict/"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ dotlambda ]; };})