1{ lib
2, buildPythonPackage
3, isPy27
4, fetchPypi
5, agate
6, sqlalchemy
7, crate
8, pytestCheckHook
9, geojson
10}:
11
12buildPythonPackage rec {
13 pname = "agate-sql";
14 version = "0.5.9";
15
16 disabled = isPy27;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-MLZCoypbZxFhq++ejsNjUvLniiTOhJBU7axpRti53cY=";
21 };
22
23 propagatedBuildInputs = [ agate sqlalchemy ];
24
25 nativeCheckInputs = [ crate geojson pytestCheckHook ];
26
27 pythonImportsCheck = [ "agatesql" ];
28
29 meta = with lib; {
30 # https://github.com/wireservice/agate-sql/commit/74af1badd85408909ea72cb6ca8c0b223d178c6f
31 broken = lib.versionAtLeast sqlalchemy.version "2.0";
32 description = "Adds SQL read/write support to agate.";
33 homepage = "https://github.com/wireservice/agate-sql";
34 license = with licenses; [ mit ];
35 maintainers = with maintainers; [ vrthra ];
36 };
37}