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";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.5.9";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-MLZCoypbZxFhq++ejsNjUvLniiTOhJBU7axpRti53cY=";
|
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
|
|
|
}
|