15 buildPythonPackage rec {
16 pname = "geoalchemy2";
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
25 rev = "refs/tags/${version}";
26 hash = "sha256-c5PvkQdfKajQha2nAtqYq7aHCgP/n41ekE04Rl2Pnr0=";
42 ] ++ optional-dependencies.shapely;
45 # tests require live databases
46 "tests/gallery/test_decipher_raster.py"
47 "tests/gallery/test_length_at_insert.py"
48 "tests/gallery/test_insert_raster.py"
49 "tests/gallery/test_orm_mapped_v2.py"
50 "tests/gallery/test_specific_compilation.py"
51 "tests/gallery/test_summarystatsagg.py"
52 "tests/gallery/test_type_decorator.py"
53 "tests/test_functional.py"
54 "tests/test_functional_postgresql.py"
55 "tests/test_functional_mysql.py"
56 "tests/test_alembic_migrations.py"
57 "tests/test_pickle.py"
60 pythonImportsCheck = [ "geoalchemy2" ];
62 optional-dependencies = {
63 shapely = [ shapely ];
67 description = "Toolkit for working with spatial databases";
68 homepage = "https://geoalchemy-2.readthedocs.io/";
69 changelog = "https://github.com/geoalchemy/geoalchemy2/releases/tag/${version}";
70 license = licenses.mit;
71 maintainers = with maintainers; [ nickcao ];