2021-03-08 07:48:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
2021-03-12 10:42:11 +00:00
|
|
|
, fetchPypi
|
2021-03-08 07:48:54 +00:00
|
|
|
, agate
|
|
|
|
, sqlalchemy
|
|
|
|
, crate
|
|
|
|
, nose
|
|
|
|
, geojson
|
|
|
|
}:
|
2017-05-03 05:12:09 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-07 14:53:42 +00:00
|
|
|
pname = "agate-sql";
|
2021-03-08 07:48:54 +00:00
|
|
|
version = "0.5.6";
|
2017-05-03 05:12:09 +01:00
|
|
|
|
2021-03-08 07:48:54 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2021-03-12 10:42:11 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "056dc9e587fbdfdf3f1c9950f4793a5ee87622c19deba31aa0a6d6681816dcde";
|
2021-03-07 14:53:42 +00:00
|
|
|
};
|
2017-05-03 05:12:09 +01:00
|
|
|
|
2021-03-08 07:48:54 +00:00
|
|
|
propagatedBuildInputs = [ agate sqlalchemy ];
|
|
|
|
|
|
|
|
checkInputs = [ crate nose geojson ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
2017-05-03 05:12:09 +01:00
|
|
|
|
2021-03-07 14:53:42 +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 ];
|
|
|
|
};
|
2017-05-03 05:12:09 +01:00
|
|
|
}
|