evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / geoalchemy2 / default.nix
blobbd3cd71bfa4712e350030d19bc255af56117b8b4
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   packaging,
6   setuptools,
7   setuptools-scm,
8   shapely,
9   sqlalchemy,
10   alembic,
11   pytestCheckHook,
12   pythonOlder,
15 buildPythonPackage rec {
16   pname = "geoalchemy2";
17   version = "0.15.2";
18   pyproject = true;
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "geoalchemy";
24     repo = "geoalchemy2";
25     rev = "refs/tags/${version}";
26     hash = "sha256-c5PvkQdfKajQha2nAtqYq7aHCgP/n41ekE04Rl2Pnr0=";
27   };
29   build-system = [
30     setuptools
31     setuptools-scm
32   ];
34   dependencies = [
35     sqlalchemy
36     packaging
37   ];
39   nativeCheckInputs = [
40     alembic
41     pytestCheckHook
42   ] ++ optional-dependencies.shapely;
44   disabledTestPaths = [
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"
58   ];
60   pythonImportsCheck = [ "geoalchemy2" ];
62   optional-dependencies = {
63     shapely = [ shapely ];
64   };
66   meta = with lib; {
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 ];
72   };