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.7.0";
15
16 disabled = isPy27;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-uyHkkc3KzuYulOtod9KkHQmszVh2mrrCOLwvQt6JTMk=";
21 };
22
23 propagatedBuildInputs = [ agate sqlalchemy ];
24
25 nativeCheckInputs = [ crate geojson pytestCheckHook ];
26
27 pythonImportsCheck = [ "agatesql" ];
28
29 meta = with lib; {
30 description = "Adds SQL read/write support to agate.";
31 homepage = "https://github.com/wireservice/agate-sql";
32 license = with licenses; [ mit ];
33 maintainers = with maintainers; [ vrthra ];
34 };
35}