depot/third_party/nixpkgs/pkgs/development/python-modules/geoalchemy2/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

53 lines
1,020 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, packaging
, setuptools-scm
, shapely
, sqlalchemy
, psycopg2
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "GeoAlchemy2";
version = "0.10.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "3db833746e11bc802b754751ec94eaab81009a9ad8fe647d461fe76d1a47a3fd";
};
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; [ ];
};
}