1{ 2 lib, 3 buildPythonPackage, 4 isPy27, 5 fetchPypi, 6 agate, 7 sqlalchemy, 8 crate, 9 pytestCheckHook, 10 geojson, 11}: 12 13buildPythonPackage rec { 14 pname = "agate-sql"; 15 version = "0.7.2"; 16 format = "setuptools"; 17 18 disabled = isPy27; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-mxswKEpXP9QWdZQ3Jz3MXIECK98vrLJLSqAppir9U7A="; 23 }; 24 25 propagatedBuildInputs = [ 26 agate 27 sqlalchemy 28 ]; 29 30 nativeCheckInputs = [ 31 geojson 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "agatesql" ]; 36 37 disabledTests = [ 38 # requires crate (sqlalchemy-cratedb) 39 "test_to_sql_create_statement_with_dialects" 40 ]; 41 42 meta = with lib; { 43 description = "Adds SQL read/write support to agate"; 44 homepage = "https://github.com/wireservice/agate-sql"; 45 license = with licenses; [ mit ]; 46 maintainers = [ ]; 47 }; 48}