python3Packages.obspec: fix pytest-mypy-plugins under sandbox
This commit is contained in:
@@ -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/";
|
||||
|
||||
Reference in New Issue
Block a user