at 22.05-pre 1.2 kB view raw
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.26.0"; 15 disabled = !isPy3k; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "6f650c2efe250b89bf35f8fe3211eb37ebc8d76f7a9c09bd73db3076708fa2fc"; 20 }; 21 22 propagatedBuildInputs = [ 23 urllib3 24 sqlalchemy 25 geojson 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 disabledTests = [ 33 "RequestsCaBundleTest" 34 ]; 35 disabledTestPaths = lib.optionals stdenv.isDarwin [ "src/crate/client/test_http.py" ]; 36 37 meta = with lib; { 38 homepage = "https://github.com/crate/crate-python"; 39 description = "A Python client library for CrateDB"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ doronbehar ]; 42 # 2021-07-12 (@layus): Please unbreak when an update fixes compatibility 43 # with the version of SQLAlchemy in nixpkgs 44 # And also re-enable tests in pythonPackages.agate-sql. 45 # The version string below is intentionally split, so nixpkgs-update does 46 # not change it. That would make this warning pretty useless. 47 broken = assert version == "0.2"+"6.0"; true; 48 }; 49}