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
|
|
|
|
, psycopg2
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "GeoAlchemy2";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.11.1";
|
2021-09-18 10:52:07 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-+SoPrdtbdDhNu/PHAAQzNYzo4HoYD+HWwoQ+qgQ3/wg=";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://geoalchemy.org/";
|
|
|
|
license = licenses.mit;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|