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

54 lines
1020 B
Nix
Raw Normal View History

{ 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"
];
2020-06-23 20:54:13 +01:00
meta = with lib; {
description = "Toolkit for working with spatial databases";
homepage = "http://geoalchemy.org/";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}