summary refs log tree commit diff
diff options
context:
space:
mode:
authorZhaofeng Li <hello@zhaofeng.li>2021-10-19 17:57:07 -0700
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-12-11 09:57:33 -0800
commitc2fb4222a84352226dcf796fe487aff5f6ccfc4f (patch)
tree58182939b398264192c6c95f567572b3b79978a4
parent8d3cdc9c2d348b7d43e2f34ac965312af2a6a9cf (diff)
downloadnixpkgs-c2fb4222a84352226dcf796fe487aff5f6ccfc4f.tar
nixpkgs-c2fb4222a84352226dcf796fe487aff5f6ccfc4f.tar.gz
nixpkgs-c2fb4222a84352226dcf796fe487aff5f6ccfc4f.tar.bz2
nixpkgs-c2fb4222a84352226dcf796fe487aff5f6ccfc4f.tar.lz
nixpkgs-c2fb4222a84352226dcf796fe487aff5f6ccfc4f.tar.xz
nixpkgs-c2fb4222a84352226dcf796fe487aff5f6ccfc4f.tar.zst
nixpkgs-c2fb4222a84352226dcf796fe487aff5f6ccfc4f.zip
pythonPackages.construct: Remove pytest-benchmark check dependency
No need to pull it in at all when the benchmarks are skipped anyways.
-rw-r--r--pkgs/development/python-modules/construct/2.10.54.nix5
-rw-r--r--pkgs/development/python-modules/construct/default.nix6
2 files changed, 4 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/construct/2.10.54.nix b/pkgs/development/python-modules/construct/2.10.54.nix
index 6cfca726051..5bbbd150145 100644
--- a/pkgs/development/python-modules/construct/2.10.54.nix
+++ b/pkgs/development/python-modules/construct/2.10.54.nix
@@ -14,7 +14,7 @@ buildPythonPackage rec {
     sha256 = "1mqspsn6bf3ibvih1zna2glkg8iw7vy5zg9gzg0d1m8zcndk2c48";
   };
 
-  checkInputs = [ pytestCheckHook pytest-benchmark enum34 numpy ];
+  checkInputs = [ pytestCheckHook enum34 numpy ];
 
   # these have dependencies that are broken on Python 2
   disabledTestPaths = [
@@ -24,13 +24,12 @@ buildPythonPackage rec {
   ];
 
   disabledTests = [
+    "test_benchmarks"
     "test_timestamp"
   ] ++ lib.optionals stdenv.isDarwin [
     "test_multiprocessing"
   ];
 
-  pytestFlagsArray = [ "--benchmark-disable" ];
-
   meta = with lib; {
     description = "Powerful declarative parser (and builder) for binary data";
     homepage = "https://construct.readthedocs.org/";
diff --git a/pkgs/development/python-modules/construct/default.nix b/pkgs/development/python-modules/construct/default.nix
index b2783fa0934..8ae44476eff 100644
--- a/pkgs/development/python-modules/construct/default.nix
+++ b/pkgs/development/python-modules/construct/default.nix
@@ -22,11 +22,9 @@ buildPythonPackage rec {
     lz4
   ];
 
-  checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel-yaml cloudpickle ];
+  checkInputs = [ pytestCheckHook numpy arrow ruamel-yaml cloudpickle ];
 
-  disabledTests = lib.optionals stdenv.isDarwin [ "test_multiprocessing" ];
-
-  pytestFlagsArray = [ "--benchmark-disable" ];
+  disabledTests = [ "test_benchmarks" ] ++ lib.optionals stdenv.isDarwin [ "test_multiprocessing" ];
 
   meta = with lib; {
     description = "Powerful declarative parser (and builder) for binary data";