1{ lib
2, python3
3, fetchPypi
4}:
5
6let
7 python = python3.override {
8 packageOverrides = self: super: {
9 sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec {
10 version = "1.4.46";
11 src = fetchPypi {
12 pname = "SQLAlchemy";
13 inherit version;
14 hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA=";
15 };
16 disabledTestPaths = [
17 "test/aaa_profiling"
18 "test/ext/mypy"
19 ];
20 });
21 };
22 };
23in
24python.pkgs.buildPythonApplication rec {
25 pname = "csvkit";
26 version = "1.1.1";
27 format = "setuptools";
28
29 src = fetchPypi {
30 inherit pname version;
31 hash = "sha256-vt23t49rIq2+1urVrV3kv7Md0sVfMhGyorO2VSkEkiM=";
32 };
33
34 propagatedBuildInputs = with python.pkgs; [
35 agate
36 agate-excel
37 agate-dbf
38 agate-sql
39 setuptools # csvsql imports pkg_resources
40 ];
41
42 nativeCheckInputs = with python.pkgs; [
43 pytestCheckHook
44 ];
45
46 pythonImportsCheck = [
47 "csvkit"
48 ];
49
50 disabledTests = [
51 # Test is comparing CLI output
52 "test_decimal_format"
53 ];
54
55 meta = with lib; {
56 changelog = "https://github.com/wireservice/csvkit/blob/${version}/CHANGELOG.rst";
57 description = "A suite of command-line tools for converting to and working with CSV";
58 homepage = "https://github.com/wireservice/csvkit";
59 license = licenses.mit;
60 maintainers = with maintainers; [ vrthra ];
61 };
62}