nixpkgs/pkgs/tools/text/csvkit/default.nix
Martin Weinelt a765d4b299
csvkit: Downgrade sqlalchemy to 1.4.46
Required for compatibility with agate-sql for now.
2023-03-09 16:41:21 +01:00

64 lines
1.5 KiB
Nix

{ lib
, python3
}:
let
python = python3.override {
packageOverrides = self: super: {
sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec {
version = "1.4.46";
src = super.fetchPypi {
pname = "SQLAlchemy";
inherit version;
hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA=";
};
nativeCheckInputs = oldAttrs.nativeCheckInputs ++ (with super; [
pytest-xdist
]);
disabledTestPaths = (oldAttrs.disabledTestPaths or []) ++ [
"test/aaa_profiling"
"test/ext/mypy"
];
});
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "csvkit";
version = "1.1.1";
format = "setuptools";
src = python.pkgs.fetchPypi {
inherit pname version;
hash = "sha256-vt23t49rIq2+1urVrV3kv7Md0sVfMhGyorO2VSkEkiM=";
};
propagatedBuildInputs = with python.pkgs; [
agate
agate-excel
agate-dbf
agate-sql
];
nativeCheckInputs = with python.pkgs; [
pytestCheckHook
];
pythonImportsCheck = [
"csvkit"
];
disabledTests = [
# Test is comparing CLI output
"test_decimal_format"
];
meta = with lib; {
changelog = "https://github.com/wireservice/csvkit/blob/${version}/CHANGELOG.rst";
description = "A suite of command-line tools for converting to and working with CSV";
homepage = "https://github.com/wireservice/csvkit";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
}