b79da2786f
Conflicts: pkgs/development/python-modules/bundlewrap/default.nix pkgs/development/python-modules/coverage/default.nix pkgs/development/python-modules/h5netcdf/default.nix pkgs/development/python-modules/hypothesis/default.nix pkgs/development/python-modules/numba/default.nix pkgs/development/python-modules/optype/default.nix pkgs/development/python-modules/setuptools-git-versioning/default.nix pkgs/development/python-modules/sphinx/default.nix
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
objgraph,
|
|
psutil,
|
|
pytestCheckHook,
|
|
pytest-codspeed,
|
|
pytest-cov-stub,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "multidict";
|
|
version = "6.7.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aio-libs";
|
|
repo = "multidict";
|
|
tag = "v${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/${src.tag}/CHANGES.rst";
|
|
description = "Multidict implementation";
|
|
homepage = "https://github.com/aio-libs/multidict/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|