depot/third_party/nixpkgs/pkgs/development/python-modules/crate/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

43 lines
817 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, urllib3
, geojson
, isPy3k
, sqlalchemy
, pytestCheckHook
, stdenv
}:
buildPythonPackage rec {
pname = "crate";
version = "0.26.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "6f650c2efe250b89bf35f8fe3211eb37ebc8d76f7a9c09bd73db3076708fa2fc";
};
propagatedBuildInputs = [
urllib3
sqlalchemy
geojson
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
"RequestsCaBundleTest"
];
disabledTestPaths = lib.optionals stdenv.isDarwin [ "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 ];
};
}