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 nativeCheckInputs = oldAttrs.nativeCheckInputs ++ (with super; [
17 pytest-xdist
18 ]);
19 disabledTestPaths = (oldAttrs.disabledTestPaths or []) ++ [
20 "test/aaa_profiling"
21 "test/ext/mypy"
22 ];
23 });
24 };
25 };
26in
27python.pkgs.buildPythonApplication rec {
28 pname = "csvkit";
29 version = "1.1.1";
30 format = "setuptools";
31
32 src = fetchPypi {
33 inherit pname version;
34 hash = "sha256-vt23t49rIq2+1urVrV3kv7Md0sVfMhGyorO2VSkEkiM=";
35 };
36
37 propagatedBuildInputs = with python.pkgs; [
38 agate
39 agate-excel
40 agate-dbf
41 agate-sql
42 ];
43
44 nativeCheckInputs = with python.pkgs; [
45 pytestCheckHook
46 ];
47
48 pythonImportsCheck = [
49 "csvkit"
50 ];
51
52 disabledTests = [
53 # Test is comparing CLI output
54 "test_decimal_format"
55 ];
56
57 meta = with lib; {
58 changelog = "https://github.com/wireservice/csvkit/blob/${version}/CHANGELOG.rst";
59 description = "A suite of command-line tools for converting to and working with CSV";
60 homepage = "https://github.com/wireservice/csvkit";
61 license = licenses.mit;
62 maintainers = with maintainers; [ vrthra ];
63 };
64}