From fe20e4391074ade165eb128d164f263770c8b21d Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Mon, 30 Nov 2020 18:05:40 +0100 Subject: [PATCH] python3Packages.tqdm: fix build --- .../python-modules/tqdm/default.nix | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/tqdm/default.nix b/pkgs/development/python-modules/tqdm/default.nix index e956d0b65ece..5df20826dc76 100644 --- a/pkgs/development/python-modules/tqdm/default.nix +++ b/pkgs/development/python-modules/tqdm/default.nix @@ -5,6 +5,8 @@ , coverage , glibcLocales , flake8 +, setuptools_scm +, pytestCheckHook }: buildPythonPackage rec { @@ -16,20 +18,18 @@ buildPythonPackage rec { sha256 = "5c0d04e06ccc0da1bd3fa5ae4550effcce42fcad947b4a6cafa77bdc9b09ff22"; }; - checkInputs = [ nose coverage glibcLocales flake8 ]; + nativeBuildInputs = [ + setuptools_scm + ]; - postPatch = '' - # Remove performance testing. - # Too sensitive for on Hydra. - rm tqdm/tests/tests_perf.py - ''; + checkInputs = [ nose coverage glibcLocales flake8 pytestCheckHook ]; + + # Remove performance testing. + # Too sensitive for on Hydra. + PYTEST_ADDOPTS = "-k \"not perf\""; LC_ALL="en_US.UTF-8"; -# doCheck = !stdenv.isDarwin; - # Test suite is too big and slow. - doCheck = false; - meta = { description = "A Fast, Extensible Progress Meter"; homepage = "https://github.com/tqdm/tqdm";