c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
48 lines
867 B
Nix
48 lines
867 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, urllib3
|
|
, geojson
|
|
, isPy3k
|
|
, sqlalchemy
|
|
, pytestCheckHook
|
|
, stdenv
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "crate";
|
|
version = "0.27.2";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-Ch4O3enHlQ+XO6+r7cnptrGJwnElHp07UubJuErft6U=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|