From 32c9ee2cfc18cf9d798011b3822c176a2ce819d9 Mon Sep 17 00:00:00 2001 From: Tim Zook Date: Wed, 9 Sep 2020 11:55:52 -0500 Subject: [PATCH] csvkit: fix failing test The build for this package was failing due to failing tests that were caused by a breaking change in a dependency. The requirements.txt for this package does not pin specific versions so it was trying to build with the new version of the dependency and failing. This commit overrides the version of the dependency that is used to build the package. --- pkgs/tools/text/csvkit/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/text/csvkit/default.nix b/pkgs/tools/text/csvkit/default.nix index 7a0240fc73013b..95ef4f22b77634 100644 --- a/pkgs/tools/text/csvkit/default.nix +++ b/pkgs/tools/text/csvkit/default.nix @@ -12,7 +12,14 @@ python3.pkgs.buildPythonApplication rec { propagatedBuildInputs = with python3.pkgs; [ agate agate-excel - agate-dbf + # dbf test fail with agate-dbf-0.2.2 + (agate-dbf.overridePythonAttrs(old: rec { + version = "0.2.1"; + src = python3.pkgs.fetchPypi { + inherit (old) pname; + inherit version; + sha256 = "0brprva3vjypb5r9lk6zy10jazp681rxsqxzhz2lr869ir4krj80"; + };})) # sql test fail with agate-sql-0.5.4 (agate-sql.overridePythonAttrs(old: rec { version = "0.5.3";