2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-09-09 09:42:25 +01:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, urllib3
|
2020-12-14 04:20:00 +00:00
|
|
|
, geojson
|
2020-09-09 09:42:25 +01:00
|
|
|
, isPy3k
|
|
|
|
, sqlalchemy
|
|
|
|
, pytestCheckHook
|
2021-03-06 17:39:45 +00:00
|
|
|
, stdenv
|
2020-09-09 09:42:25 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "crate";
|
2020-11-29 14:04:25 +00:00
|
|
|
version = "0.26.0";
|
2020-09-09 09:42:25 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:25 +00:00
|
|
|
sha256 = "6f650c2efe250b89bf35f8fe3211eb37ebc8d76f7a9c09bd73db3076708fa2fc";
|
2020-09-09 09:42:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
urllib3
|
2020-12-14 04:20:00 +00:00
|
|
|
sqlalchemy
|
|
|
|
geojson
|
2020-09-09 09:42:25 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-05-09 00:44:00 +01:00
|
|
|
disabledTests = [
|
|
|
|
"RequestsCaBundleTest"
|
|
|
|
];
|
2021-03-06 17:39:45 +00:00
|
|
|
disabledTestPaths = lib.optionals stdenv.isDarwin [ "src/crate/client/test_http.py" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-09 09:42:25 +01:00
|
|
|
homepage = "https://github.com/crate/crate-python";
|
|
|
|
description = "A Python client library for CrateDB";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|