1{ lib 2, buildPythonPackage 3, fetchPypi 4, packaging 5, setuptools-scm 6, shapely 7, sqlalchemy 8, psycopg2 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "GeoAlchemy2"; 14 version = "0.9.4"; 15 format = "setuptools"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "b0e56d4a945bdc0f8fa9edd50ecc912889ea68e0e3558a19160dcb0d5b1b65fc"; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools-scm 24 ]; 25 26 propagatedBuildInputs = [ 27 packaging 28 shapely 29 sqlalchemy 30 ]; 31 32 checkInputs = [ 33 psycopg2 34 pytestCheckHook 35 ]; 36 37 disabledTestPaths = [ 38 # tests require live postgis database 39 "tests/gallery/test_decipher_raster.py" 40 "tests/gallery/test_length_at_insert.py" 41 "tests/gallery/test_summarystatsagg.py" 42 "tests/gallery/test_type_decorator.py" 43 "tests/test_functional.py" 44 ]; 45 46 meta = with lib; { 47 description = "Toolkit for working with spatial databases"; 48 homepage = "http://geoalchemy.org/"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ ]; 51 }; 52 53}