mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-30 00:50:17 +02:00
python3Packages.geoalchemy2: fix build, enable tests, refactor
This commit is contained in:
parent
495a9649e6
commit
a81561f9f7
|
@ -1,31 +1,53 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, sqlalchemy
|
||||
, shapely
|
||||
, packaging
|
||||
, setuptools-scm
|
||||
, pytest
|
||||
, 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 = [ sqlalchemy shapely ];
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
# https://github.com/geoalchemy/geoalchemy2/blob/e05a676350b11f0e73609379dae5625c5de2e868/TEST.rst
|
||||
doCheck = false;
|
||||
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;
|
||||
description = "Toolkit for working with spatial databases";
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue