python3Packages: don't depend on setup hooks' bash eval (#352976)

This commit is contained in:
Emily
2024-11-15 11:59:21 +00:00
committed by GitHub
9 changed files with 11 additions and 12 deletions

View File

@@ -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'"

View File

@@ -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"
];

View File

@@ -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'"

View File

@@ -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'"

View File

@@ -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'"

View File

@@ -72,7 +72,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"-o cache_dir=$(mktemp -d)"
"-p no:cacheprovider"
"-W"
"ignore::DeprecationWarning"
];

View File

@@ -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";

View File

@@ -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

View File

@@ -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"
];