tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.mistral-common: init at 1.5.2
Pavol Rusnak
11 months ago
bce8e5a9
9abe16fa
+59
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
mistral-common
default.nix
top-level
python-packages.nix
+57
pkgs/development/python-modules/mistral-common/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{
2
+
lib,
3
+
buildPythonPackage,
4
+
fetchPypi,
5
+
poetry-core,
6
+
numpy,
7
+
pydantic,
8
+
jsonschema,
9
+
sentencepiece,
10
+
typing-extensions,
11
+
tiktoken,
12
+
pillow,
13
+
requests,
14
+
}:
15
+
16
+
buildPythonPackage rec {
17
+
pname = "mistral-common";
18
+
version = "1.5.2";
19
+
pyproject = true;
20
+
21
+
src = fetchPypi {
22
+
pname = "mistral_common";
23
+
inherit version;
24
+
hash = "sha256-nRFXsTdsSdNav8dD2+AITyyjezpavQPnQSdqG8ZshS8=";
25
+
};
26
+
27
+
# relax dependencies
28
+
postPatch = ''
29
+
substituteInPlace pyproject.toml \
30
+
--replace-fail 'pillow = "^10.3.0"' 'pillow = ">=10.3.0"' \
31
+
--replace-fail 'tiktoken = "^0.7.0"' 'tiktoken = ">=0.7.0"' \
32
+
'';
33
+
34
+
build-system = [ poetry-core ];
35
+
36
+
dependencies = [
37
+
numpy
38
+
pydantic
39
+
jsonschema
40
+
sentencepiece
41
+
typing-extensions
42
+
tiktoken
43
+
pillow
44
+
requests
45
+
];
46
+
47
+
doCheck = true;
48
+
49
+
pythonImportsCheck = [ "mistral_common" ];
50
+
51
+
meta = with lib; {
52
+
description = "mistral-common is a set of tools to help you work with Mistral models.";
53
+
homepage = "https://github.com/mistralai/mistral-common";
54
+
license = licenses.asl20;
55
+
maintainers = with maintainers; [ bgamari ];
56
+
};
57
+
}
+2
pkgs/top-level/python-packages.nix
···
8278
8279
mistletoe = callPackage ../development/python-modules/mistletoe { };
8280
0
0
8281
mistune = callPackage ../development/python-modules/mistune { };
8282
8283
mitmproxy = callPackage ../development/python-modules/mitmproxy { };
···
8278
8279
mistletoe = callPackage ../development/python-modules/mistletoe { };
8280
8281
+
mistral-common = callPackage ../development/python-modules/mistral-common { };
8282
+
8283
mistune = callPackage ../development/python-modules/mistune { };
8284
8285
mitmproxy = callPackage ../development/python-modules/mitmproxy { };