python3Packages.mistral-common: 1.8.3 -> 1.8.4
This commit is contained in:
committed by
Gaetan Lepage
parent
5f2dd6539d
commit
d332f29622
@@ -1,57 +1,96 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
poetry-core,
|
||||
numpy,
|
||||
pydantic,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
jsonschema,
|
||||
numpy,
|
||||
opencv-python-headless,
|
||||
sentencepiece,
|
||||
typing-extensions,
|
||||
tiktoken,
|
||||
pillow,
|
||||
pydantic,
|
||||
pydantic-extra-types,
|
||||
requests,
|
||||
sentencepiece,
|
||||
tiktoken,
|
||||
typing-extensions,
|
||||
|
||||
# tests
|
||||
click,
|
||||
fastapi,
|
||||
huggingface-hub,
|
||||
openai,
|
||||
pycountry,
|
||||
pydantic-settings,
|
||||
pytestCheckHook,
|
||||
soundfile,
|
||||
soxr,
|
||||
uvicorn,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mistral-common";
|
||||
version = "1.8.3";
|
||||
version = "1.8.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "mistral_common";
|
||||
inherit version;
|
||||
hash = "sha256-DRl52CIntiX21xs8goF28FnajQ9aMwfN9TtIQJo5cKQ=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "mistralai";
|
||||
repo = "mistral-common";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-HB6dsqiDSLhjyANk7ZT/cU98mjJamegAF0uKH8GfgM8=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"pillow"
|
||||
"tiktoken"
|
||||
];
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
numpy
|
||||
pydantic
|
||||
jsonschema
|
||||
numpy
|
||||
opencv-python-headless
|
||||
sentencepiece
|
||||
typing-extensions
|
||||
tiktoken
|
||||
pillow
|
||||
pydantic
|
||||
pydantic-extra-types
|
||||
requests
|
||||
sentencepiece
|
||||
tiktoken
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
pythonImportsCheck = [ "mistral_common" ];
|
||||
|
||||
meta = with lib; {
|
||||
nativeCheckInputs = [
|
||||
click
|
||||
fastapi
|
||||
huggingface-hub
|
||||
openai
|
||||
pycountry
|
||||
pydantic-settings
|
||||
pytestCheckHook
|
||||
soundfile
|
||||
soxr
|
||||
uvicorn
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Require internet
|
||||
"test_download_gated_image"
|
||||
"test_image_encoder_formats"
|
||||
"test_image_processing"
|
||||
|
||||
# AssertionError: Regex pattern did not match.
|
||||
"test_from_url"
|
||||
|
||||
# AssertionError, Extra items in the right set
|
||||
"test_openai_chat_fields"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Tools to help you work with Mistral models";
|
||||
homepage = "https://github.com/mistralai/mistral-common";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ bgamari ];
|
||||
changelog = "https://github.com/mistralai/mistral-common/releases/tag/v${version}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ bgamari ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user