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-01-13 20:06:32 +00:00
|
|
|
version = "0.10.2";
|
2021-09-18 10:52:07 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "3db833746e11bc802b754751ec94eaab81009a9ad8fe647d461fe76d1a47a3fd";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|