depot/third_party/nixpkgs/pkgs/development/python-modules/crate/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

48 lines
867 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, urllib3
, geojson
, isPy3k
, sqlalchemy
, pytestCheckHook
, stdenv
}:
buildPythonPackage rec {
pname = "crate";
version = "0.27.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-YYzn13yaTTVt4mxbE8wbymGrisraMRRHodydawSy/Uc=";
};
propagatedBuildInputs = [
urllib3
sqlalchemy
geojson
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
# network access
"test_layer_from_uri"
];
disabledTestPaths = [
# imports setuptools.ssl_support, which doesn't exist anymore
"src/crate/client/test_http.py"
];
meta = with lib; {
homepage = "https://github.com/crate/crate-python";
description = "A Python client library for CrateDB";
license = licenses.asl20;
maintainers = with maintainers; [ doronbehar ];
};
}