2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-09-18 10:52:07 +00:00
|
|
|
, packaging
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2021-09-18 10:52:07 +00:00
|
|
|
, shapely
|
|
|
|
, sqlalchemy
|
2022-08-12 12:06:08 +00:00
|
|
|
, alembic
|
2021-09-18 10:52:07 +00:00
|
|
|
, psycopg2
|
|
|
|
, pytestCheckHook
|
2022-09-09 14:08:57 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-09-09 14:08:57 +00:00
|
|
|
pname = "geoalchemy2";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.13.1";
|
2021-09-18 10:52:07 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
2022-09-09 14:08:57 +00:00
|
|
|
pname = "GeoAlchemy2";
|
|
|
|
inherit version;
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-VyRtRK6pC0xS+EwAb2dY0OGVHrkBjxBAmocUHwIVmxM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
|
|
|
shapely
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
alembic
|
2021-09-18 10:52:07 +00:00
|
|
|
psycopg2
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# tests require live postgis database
|
|
|
|
"--deselect=tests/test_pickle.py::TestPickle::test_pickle_unpickle"
|
|
|
|
"--deselect=tests/gallery/test_specific_compilation.py::test_specific_compilation"
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# tests require live postgis database
|
|
|
|
"tests/gallery/test_decipher_raster.py"
|
|
|
|
"tests/gallery/test_length_at_insert.py"
|
|
|
|
"tests/gallery/test_summarystatsagg.py"
|
|
|
|
"tests/gallery/test_type_decorator.py"
|
|
|
|
"tests/test_functional.py"
|
2022-04-27 09:35:20 +00:00
|
|
|
"tests/test_functional_postgresql.py"
|
2022-08-12 12:06:08 +00:00
|
|
|
"tests/test_alembic_migrations.py"
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"geoalchemy2"
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-09-18 10:52:07 +00:00
|
|
|
description = "Toolkit for working with spatial databases";
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://geoalchemy-2.readthedocs.io/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|