diff options
author | Benjamin Asbach <asbachb@users.noreply.github.com> | 2021-09-14 08:34:34 -0600 |
---|---|---|
committer | Benjamin Asbach <asbachb@users.noreply.github.com> | 2021-09-14 14:05:49 -0600 |
commit | a5d5f32f9018fcafb203437740964ab574aef8ab (patch) | |
tree | f870c401fa5c6518ec98d600a50588424c4fbf40 | |
parent | ac74b42351e671d45949341fe5b9dac5bb69f574 (diff) | |
download | nixpkgs-a5d5f32f9018fcafb203437740964ab574aef8ab.tar nixpkgs-a5d5f32f9018fcafb203437740964ab574aef8ab.tar.gz nixpkgs-a5d5f32f9018fcafb203437740964ab574aef8ab.tar.bz2 nixpkgs-a5d5f32f9018fcafb203437740964ab574aef8ab.tar.lz nixpkgs-a5d5f32f9018fcafb203437740964ab574aef8ab.tar.xz nixpkgs-a5d5f32f9018fcafb203437740964ab574aef8ab.tar.zst nixpkgs-a5d5f32f9018fcafb203437740964ab574aef8ab.zip |
csvs-to-sqlite: added override for `click` dependency to version `7` in order to fix build
The application is not capable to build with `click` greate than version `7`.
-rw-r--r-- | pkgs/tools/misc/csvs-to-sqlite/default.nix | 24 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 13 insertions, 13 deletions
diff --git a/pkgs/tools/misc/csvs-to-sqlite/default.nix b/pkgs/tools/misc/csvs-to-sqlite/default.nix index ea32471f09c..b351b6e4efb 100644 --- a/pkgs/tools/misc/csvs-to-sqlite/default.nix +++ b/pkgs/tools/misc/csvs-to-sqlite/default.nix @@ -1,16 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy3k -, click -, dateparser -, pandas -, py-lru-cache -, six -, pytestCheckHook -}: +{ lib, python3, fetchFromGitHub }: -buildPythonPackage rec { +let + # csvs-to-sqlite is currently not compatible with Click 8. See the following + # https://github.com/simonw/csvs-to-sqlite/issues/80 + # + # Workaround the issue by providing click 7 explicitly. + python = python3.override { + packageOverrides = self: super: { + click = self.callPackage ../../../development/python-modules/click/7.nix { }; + }; + }; +in with python.pkgs; buildPythonApplication rec { pname = "csvs-to-sqlite"; version = "1.2"; disabled = !isPy3k; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index afad862de88..f10b60c4aa7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2470,7 +2470,7 @@ with pkgs; csv2latex = callPackage ../tools/misc/csv2latex { }; - csvs-to-sqlite = python3Packages.callPackage ../tools/misc/csvs-to-sqlite { }; + csvs-to-sqlite = callPackage ../tools/misc/csvs-to-sqlite { }; cucumber = callPackage ../development/tools/cucumber {}; |