nixpkgs/pkgs/development/python-modules/crate/default.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
2020-09-09 10:42:25 +02:00
, fetchPypi
, buildPythonPackage
, urllib3
2020-12-14 05:20:00 +01:00
, geojson
2020-09-09 10:42:25 +02:00
, isPy3k
, sqlalchemy
, pytestCheckHook
, stdenv
2020-09-09 10:42:25 +02:00
}:
buildPythonPackage rec {
pname = "crate";
version = "0.26.0";
2020-09-09 10:42:25 +02:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "6f650c2efe250b89bf35f8fe3211eb37ebc8d76f7a9c09bd73db3076708fa2fc";
2020-09-09 10:42:25 +02:00
};
propagatedBuildInputs = [
urllib3
2020-12-14 05:20:00 +01:00
sqlalchemy
geojson
2020-09-09 10:42:25 +02:00
];
checkInputs = [
pytestCheckHook
];
2021-05-09 01:44:00 +02:00
disabledTests = [
"RequestsCaBundleTest"
];
disabledTestPaths = lib.optionals stdenv.isDarwin [ "src/crate/client/test_http.py" ];
meta = with lib; {
2020-09-09 10:42:25 +02:00
homepage = "https://github.com/crate/crate-python";
description = "A Python client library for CrateDB";
license = licenses.asl20;
maintainers = with maintainers; [ doronbehar ];
# 2021-07-12 (@layus): Please unbreak when an update fixes compatibility
# with the version of SQLAlchemy in nixpkgs
# And also re-enable tests in pythonPackages.agate-sql.
# The version string below is intentionally split, so nixpkgs-update does
# not change it. That would make this warning pretty useless.
broken = assert version == "0.2"+"6.0"; true;
2020-09-09 10:42:25 +02:00
};
}