1{ lib
2, fetchPypi
3, buildPythonPackage
4, urllib3
5, geojson
6, isPy3k
7, sqlalchemy
8, pytestCheckHook
9, stdenv
10}:
11
12buildPythonPackage rec {
13 pname = "crate";
14 version = "0.27.2";
15 disabled = !isPy3k;
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "sha256-Ch4O3enHlQ+XO6+r7cnptrGJwnElHp07UubJuErft6U=";
20 };
21
22 propagatedBuildInputs = [
23 urllib3
24 sqlalchemy
25 geojson
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 ];
31
32 disabledTests = [
33 # network access
34 "test_layer_from_uri"
35 ];
36
37 disabledTestPaths = [
38 # imports setuptools.ssl_support, which doesn't exist anymore
39 "src/crate/client/test_http.py"
40 ];
41
42 meta = with lib; {
43 homepage = "https://github.com/crate/crate-python";
44 description = "A Python client library for CrateDB";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ doronbehar ];
47 };
48}