2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 17:12:28 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-08-30 13:47:24 +01:00
|
|
|
, packaging
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2021-08-30 13:47:24 +01:00
|
|
|
, shapely
|
|
|
|
, sqlalchemy
|
|
|
|
, psycopg2
|
|
|
|
, pytestCheckHook
|
2018-10-26 17:12:28 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "GeoAlchemy2";
|
2022-01-08 13:32:12 +00:00
|
|
|
version = "0.10.2";
|
2021-08-30 13:47:24 +01:00
|
|
|
format = "setuptools";
|
2018-10-26 17:12:28 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-08 13:32:12 +00:00
|
|
|
sha256 = "3db833746e11bc802b754751ec94eaab81009a9ad8fe647d461fe76d1a47a3fd";
|
2018-10-26 17:12:28 +01:00
|
|
|
};
|
|
|
|
|
2021-08-30 13:47:24 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2018-10-26 17:12:28 +01:00
|
|
|
|
2021-08-30 13:47:24 +01: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-06-23 20:54:13 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-08-30 13:47:24 +01:00
|
|
|
description = "Toolkit for working with spatial databases";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://geoalchemy.org/";
|
2018-10-26 17:12:28 +01:00
|
|
|
license = licenses.mit;
|
2021-08-30 13:47:24 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-26 17:12:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|