nixpkgs/pkgs/development/python-modules/sqlalchemy-citext/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

37 lines
767 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
psycopg2,
sqlalchemy,
}:
buildPythonPackage rec {
pname = "sqlalchemy-citext";
version = "1.8.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "a1740e693a9a334e7c8f60ae731083fe75ce6c1605bb9ca6644a6f1f63b15b77";
};
propagatedBuildInputs = [
sqlalchemy
# not listed in `install_requires`, but is imported in citext/__init__.py
psycopg2
];
# tests are not packaged in pypi tarball
doCheck = false;
pythonImportsCheck = [ "citext" ];
meta = {
description = "Sqlalchemy plugin that allows postgres use of CITEXT";
homepage = "https://github.com/mahmoudimus/sqlalchemy-citext";
license = lib.licenses.mit;
maintainers = [ ];
};
}