1{ lib
2, buildPythonPackage
3, fetchPypi
4, psycopg2
5, sqlalchemy
6}:
7
8buildPythonPackage rec {
9 pname = "sqlalchemy-citext";
10 version = "1.8.0";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "a1740e693a9a334e7c8f60ae731083fe75ce6c1605bb9ca6644a6f1f63b15b77";
15 };
16
17 propagatedBuildInputs = [
18 sqlalchemy
19
20 # not listed in `install_requires`, but is imported in citext/__init__.py
21 psycopg2
22 ];
23
24 # tests are not packaged in pypi tarball
25 doCheck = false;
26
27 pythonImportsCheck = [ "citext" ];
28
29 meta = with lib; {
30 description = "A sqlalchemy plugin that allows postgres use of CITEXT";
31 homepage = "https://github.com/mahmoudimus/sqlalchemy-citext";
32 license = licenses.mit;
33 maintainers = [ maintainers.costrouc ];
34 };
35}