1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-17 02:14:36 +00:00
nixpkgs/pkgs/tools/misc/csvs-to-sqlite/default.nix
Benjamin Asbach a5d5f32f90 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`.
2021-09-14 14:05:49 -06:00

45 lines
1 KiB
Nix

{ lib, python3, fetchFromGitHub }:
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;
src = fetchFromGitHub {
owner = "simonw";
repo = pname;
rev = version;
sha256 = "0p99cg76d3s7jxvigh5ad04dzhmr6g62qzzh4i6h7x9aiyvdhvk4";
};
propagatedBuildInputs = [
click
dateparser
pandas
py-lru-cache
six
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Convert CSV files into a SQLite database";
homepage = "https://github.com/simonw/csvs-to-sqlite";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}