nixpkgs/pkgs/development/python-modules/crate/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

51 lines
889 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, urllib3
, geojson
, isPy3k
, sqlalchemy
, pytestCheckHook
, pytz
, stdenv
}:
buildPythonPackage rec {
pname = "crate";
version = "0.29.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-SywW/b4DnVeSzzRiHbDaKTjcuwDnkwrK6vFfaQVIZhQ=";
};
propagatedBuildInputs = [
urllib3
sqlalchemy
geojson
];
nativeCheckInputs = [
pytestCheckHook
pytz
];
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 ];
};
}