2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-09-09 08:42:25 +00:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, urllib3
|
2020-12-14 04:20:00 +00:00
|
|
|
, geojson
|
2020-09-09 08:42:25 +00:00
|
|
|
, isPy3k
|
|
|
|
, sqlalchemy
|
|
|
|
, pytestCheckHook
|
2022-12-30 19:13:03 +00:00
|
|
|
, pytz
|
2021-03-06 17:39:45 +00:00
|
|
|
, stdenv
|
2020-09-09 08:42:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "crate";
|
2022-12-30 19:13:03 +00:00
|
|
|
version = "0.29.0";
|
2020-09-09 08:42:25 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-30 19:13:03 +00:00
|
|
|
sha256 = "sha256-SywW/b4DnVeSzzRiHbDaKTjcuwDnkwrK6vFfaQVIZhQ=";
|
2020-09-09 08:42:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
urllib3
|
2020-12-14 04:20:00 +00:00
|
|
|
sqlalchemy
|
|
|
|
geojson
|
2020-09-09 08:42:25 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2020-09-09 08:42:25 +00:00
|
|
|
pytestCheckHook
|
2022-12-30 19:13:03 +00:00
|
|
|
pytz
|
2020-09-09 08:42:25 +00:00
|
|
|
];
|
|
|
|
|
2021-05-08 23:44:00 +00:00
|
|
|
disabledTests = [
|
2022-07-16 10:59:02 +00:00
|
|
|
# network access
|
|
|
|
"test_layer_from_uri"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# imports setuptools.ssl_support, which doesn't exist anymore
|
|
|
|
"src/crate/client/test_http.py"
|
2021-05-08 23:44:00 +00:00
|
|
|
];
|
2021-03-06 17:39:45 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-09 08:42:25 +00:00
|
|
|
homepage = "https://github.com/crate/crate-python";
|
|
|
|
description = "A Python client library for CrateDB";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|