mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
python310Packages.opensearch-py: init at 2.1.1
This commit is contained in:
parent
35b2d417c3
commit
db09900aa6
59
pkgs/development/python-modules/opensearch-py/default.nix
Normal file
59
pkgs/development/python-modules/opensearch-py/default.nix
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
{ aiohttp
|
||||||
|
, botocore
|
||||||
|
, buildPythonPackage
|
||||||
|
, certifi
|
||||||
|
, fetchFromGitHub
|
||||||
|
, lib
|
||||||
|
, mock
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pyyaml
|
||||||
|
, requests
|
||||||
|
, urllib3
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "opensearch-py";
|
||||||
|
version = "2.1.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "opensearch-project";
|
||||||
|
repo = "opensearch-py";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-uJ6fdRPDK76qKHE4E6dI01vKgvfqbc6A1RCwnOtuOTY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
botocore
|
||||||
|
certifi
|
||||||
|
requests
|
||||||
|
urllib3
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
mock
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
pyyaml
|
||||||
|
] ++ passthru.optional-dependencies.async;
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# require network
|
||||||
|
"test_opensearchpy/test_async/test_connection.py"
|
||||||
|
"test_opensearchpy/test_async/test_server"
|
||||||
|
"test_opensearchpy/test_connection.py"
|
||||||
|
"test_opensearchpy/test_server"
|
||||||
|
"test_opensearchpy/test_server_secured"
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru.optional-dependencies.async = [ aiohttp ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Python low-level client for OpenSearch";
|
||||||
|
homepage = "https://github.com/opensearch-project/opensearch-py";
|
||||||
|
changelog = "https://github.com/opensearch-project/opensearch-py/releases/tag/v${version}";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = with lib.maintainers; [ mcwitt ];
|
||||||
|
};
|
||||||
|
}
|
@ -6645,6 +6645,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
openrouteservice = callPackage ../development/python-modules/openrouteservice { };
|
openrouteservice = callPackage ../development/python-modules/openrouteservice { };
|
||||||
|
|
||||||
|
opensearch-py = callPackage ../development/python-modules/opensearch-py { };
|
||||||
|
|
||||||
opensensemap-api = callPackage ../development/python-modules/opensensemap-api { };
|
opensensemap-api = callPackage ../development/python-modules/opensensemap-api { };
|
||||||
|
|
||||||
opensfm = callPackage ../development/python-modules/opensfm { };
|
opensfm = callPackage ../development/python-modules/opensfm { };
|
||||||
|
Loading…
Reference in New Issue
Block a user