python3Packages.obspec: fix pytest-mypy-plugins under sandbox

This commit is contained in:
Harinn
2026-05-24 18:58:48 +07:00
parent 2bb5ecd583
commit 83d906581b
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
python,
pytestCheckHook,
# build system
@@ -44,6 +45,11 @@ buildPythonPackage (finalAttrs: {
pytest-mypy-plugins
];
# expose the installed package so pytest-mypy-plugins' mypy subprocess can resolve `import obspec`
preCheck = ''
export MYPYPATH=$out/${python.sitePackages}
'';
meta = {
description = "Object storage interface definitions for Python";
homepage = "http://developmentseed.org/obspec/";