nixpkgs/pkgs/development/python-modules/geoalchemy2/default.nix

53 lines
1,019 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, packaging
, setuptools-scm
, 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 = [
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;
maintainers = with maintainers; [ ];
};
}