nixpkgs/pkgs/tools/text/csvkit/default.nix
Vladimír Čunát 9249f60087
treewide: fixup the embedded sqlalchemy
I got tired of doing this one commit per package.
2023-07-21 17:03:19 +02:00

63 lines
1.4 KiB
Nix

{ lib
, python3
, fetchPypi
}:
let
python = python3.override {
packageOverrides = self: super: {
sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec {
version = "1.4.46";
src = fetchPypi {
pname = "SQLAlchemy";
inherit version;
hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA=";
};
disabledTestPaths = [
"test/aaa_profiling"
"test/ext/mypy"
];
});
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "csvkit";
version = "1.1.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-vt23t49rIq2+1urVrV3kv7Md0sVfMhGyorO2VSkEkiM=";
};
propagatedBuildInputs = with python.pkgs; [
agate
agate-excel
agate-dbf
agate-sql
setuptools # csvsql imports pkg_resources
];
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 ];
};
}