nixpkgs/pkgs/development/python-modules/agate-sql/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
834 B
Nix

{
lib,
buildPythonPackage,
isPy27,
fetchPypi,
agate,
sqlalchemy,
crate,
pytestCheckHook,
geojson,
}:
buildPythonPackage rec {
pname = "agate-sql";
version = "0.7.2";
format = "setuptools";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-mxswKEpXP9QWdZQ3Jz3MXIECK98vrLJLSqAppir9U7A=";
};
propagatedBuildInputs = [
agate
sqlalchemy
];
nativeCheckInputs = [
geojson
pytestCheckHook
];
pythonImportsCheck = [ "agatesql" ];
disabledTests = [
# requires crate (sqlalchemy-cratedb)
"test_to_sql_create_statement_with_dialects"
];
meta = {
description = "Adds SQL read/write support to agate";
homepage = "https://github.com/wireservice/agate-sql";
license = with lib.licenses; [ mit ];
maintainers = [ ];
};
}