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
|
|
|
|
, nose
|
|
|
|
, geojson
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-09 03:18:52 +00:00
|
|
|
pname = "agate-sql";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.5.8";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "581e062ae878cc087d3d0948670d46b16589df0790bf814524b0587a359f2ada";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ agate sqlalchemy ];
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
# crate is broken in nixpkgs, with SQLAlchemy > 1.3
|
|
|
|
# Skip tests for now as they rely on it.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
checkInputs = [ crate nose geojson ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
}
|