2019-07-18 21:37:43 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-04-21 17:42:29 +00:00
|
|
|
, psycopg2
|
2019-07-18 21:37:43 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sqlalchemy-citext";
|
2021-03-24 09:28:29 +00:00
|
|
|
version = "1.8.0";
|
2019-07-18 21:37:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:29 +00:00
|
|
|
sha256 = "a1740e693a9a334e7c8f60ae731083fe75ce6c1605bb9ca6644a6f1f63b15b77";
|
2019-07-18 21:37:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
sqlalchemy
|
2021-04-21 17:42:29 +00:00
|
|
|
|
|
|
|
# not listed in `install_requires`, but is imported in citext/__init__.py
|
|
|
|
psycopg2
|
2019-07-18 21:37:43 +00:00
|
|
|
];
|
|
|
|
|
2020-09-04 16:19:28 +00:00
|
|
|
# tests are not packaged in pypi tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "citext" ];
|
2019-07-18 21:37:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A sqlalchemy plugin that allows postgres use of CITEXT";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mahmoudimus/sqlalchemy-citext";
|
2019-07-18 21:37:43 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|