nixpkgs/pkgs/tools/text/csvkit/default.nix
2023-05-25 19:03:52 +03:00

65 lines
1.5 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=";
};
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 = 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 ];
};
}