From ec1a445028155f649ee9a001a9ba3d0c7a48204a Mon Sep 17 00:00:00 2001 From: Pamplemousse Date: Mon, 2 Dec 2019 16:28:11 -0700 Subject: [PATCH] pythonPackage.progressbar2: Fix The `postPatch` phase is failing when no `.pyc` file is generated in `tests` by the build (`rm: missing operand` error). As per @jonringer's comment, the whole `postPatch` is not needed anymore. --- pkgs/development/python-modules/progressbar2/default.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/development/python-modules/progressbar2/default.nix b/pkgs/development/python-modules/progressbar2/default.nix index b9e16f6e457..aa6c9b70926 100644 --- a/pkgs/development/python-modules/progressbar2/default.nix +++ b/pkgs/development/python-modules/progressbar2/default.nix @@ -23,11 +23,6 @@ buildPythonPackage rec { sha256 = "7538d02045a1fd3aa2b2834bfda463da8755bd3ff050edc6c5ddff3bc616215f"; }; - postPatch = '' - rm -r tests/__pycache__ - rm tests/*.pyc - ''; - propagatedBuildInputs = [ python-utils ]; nativeBuildInputs = [ pytestrunner ]; checkInputs = [