mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
python3Packages: don't depend on setup hooks' bash eval (#352976)
This commit is contained in:
@@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-o cache_dir=$(mktemp -d)"
|
||||
"-p no:cacheprovider"
|
||||
|
||||
# Monitor https://github.com/certbot/certbot/issues/9606 for a solution
|
||||
"-W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning'"
|
||||
|
||||
@@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-o cache_dir=$(mktemp -d)"
|
||||
"-p no:cacheprovider"
|
||||
# https://github.com/certbot/certbot/issues/9988
|
||||
"-Wignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
@@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-o cache_dir=$(mktemp -d)"
|
||||
"-p no:cacheprovider"
|
||||
|
||||
# Monitor https://github.com/certbot/certbot/issues/9606 for a solution
|
||||
"-W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning'"
|
||||
|
||||
@@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-o cache_dir=$(mktemp -d)"
|
||||
"-p no:cacheprovider"
|
||||
|
||||
# Monitor https://github.com/certbot/certbot/issues/9606 for a solution
|
||||
"-W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning'"
|
||||
|
||||
@@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-o cache_dir=$(mktemp -d)"
|
||||
"-p no:cacheprovider"
|
||||
|
||||
# Monitor https://github.com/certbot/certbot/issues/9606 for a solution
|
||||
"-W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning'"
|
||||
|
||||
@@ -72,7 +72,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-o cache_dir=$(mktemp -d)"
|
||||
"-p no:cacheprovider"
|
||||
"-W"
|
||||
"ignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
@@ -58,7 +58,8 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/255262
|
||||
pytestFlagsArray = [ "$out/${python.sitePackages}/numcodecs" ];
|
||||
preCheck = "pushd $out";
|
||||
postCheck = "popd";
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/zarr-developers/numcodecs";
|
||||
|
||||
@@ -211,8 +211,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-o"
|
||||
"cache_dir=$TMPDIR"
|
||||
"-o cache_dir=.cache"
|
||||
"-m"
|
||||
"'not refcount and not timing and not flakey'"
|
||||
# pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect
|
||||
|
||||
@@ -44,6 +44,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
preBuild = lib.optionalString withDriver ''
|
||||
export CHIPSEC_BUILD_LIB=$(mktemp -d)
|
||||
mkdir -p $CHIPSEC_BUILD_LIB/chipsec/helper/linux
|
||||
appendToVar setupPyBuildFlags "--build-lib=$CHIPSEC_BUILD_LIB"
|
||||
'';
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [
|
||||
@@ -57,9 +58,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
$out/${python3.pkgs.python.sitePackages}/drivers/linux/chipsec.ko
|
||||
'';
|
||||
|
||||
setupPyBuildFlags = [
|
||||
"--build-lib=$CHIPSEC_BUILD_LIB"
|
||||
] ++ lib.optionals (!withDriver) [
|
||||
setupPyBuildFlags = lib.optionals (!withDriver) [
|
||||
"--skip-driver"
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user