python3Packages.geoalchemy2: fix build, enable tests, refactor

This commit is contained in:
Martin Weinelt 2021-08-30 14:47:24 +02:00
parent 495a9649e6
commit a81561f9f7

View File

@ -1,31 +1,53 @@
{ lib
, buildPythonPackage
, fetchPypi
, sqlalchemy
, shapely
, packaging
, setuptools-scm
, pytest
, shapely
, sqlalchemy
, psycopg2
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "GeoAlchemy2";
version = "0.9.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "b0e56d4a945bdc0f8fa9edd50ecc912889ea68e0e3558a19160dcb0d5b1b65fc";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ sqlalchemy shapely ];
nativeBuildInputs = [
setuptools-scm
];
# https://github.com/geoalchemy/geoalchemy2/blob/e05a676350b11f0e73609379dae5625c5de2e868/TEST.rst
doCheck = false;
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"
];
meta = with lib; {
description = "Toolkit for working with spatial databases";
homepage = "http://geoalchemy.org/";
license = licenses.mit;
description = "Toolkit for working with spatial databases";
maintainers = with maintainers; [ ];
};
}