2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
2021-03-15 08:37:03 +00:00
|
|
|
, fetchPypi
|
2021-03-09 03:18:52 +00:00
|
|
|
, agate
|
|
|
|
, sqlalchemy
|
|
|
|
, crate
|
2022-08-12 12:06:08 +00:00
|
|
|
, pytestCheckHook
|
2021-03-09 03:18:52 +00:00
|
|
|
, geojson
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-09 03:18:52 +00:00
|
|
|
pname = "agate-sql";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.7.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-mxswKEpXP9QWdZQ3Jz3MXIECK98vrLJLSqAppir9U7A=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ agate sqlalchemy ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ crate geojson pytestCheckHook ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "agatesql" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Adds SQL read/write support to agate.";
|
|
|
|
homepage = "https://github.com/wireservice/agate-sql";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|