blob: 7dd80a4669126cec1a0f37c40f6fe46c7d8fc6b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
pythonAtLeast,
python,
onnx,
paddlepaddle,
}:
let
pname = "paddle2onnx";
version = "2.0.1";
format = "wheel";
pyShortVersion = "cp${builtins.replaceStrings [ "." ] [ "" ] python.pythonVersion}";
src = fetchPypi {
inherit pname version;
format = "wheel";
dist = pyShortVersion;
python = pyShortVersion;
abi = pyShortVersion;
platform = "manylinux_2_24_x86_64.manylinux_2_28_x86_64";
hash = "sha256-RCD6iTvzhGrFjW02lasTwQoM+Xa68Q5b6Ito3KvqdHg=";
};
in
buildPythonPackage {
inherit
pname
version
src
format
;
disabled = pythonOlder "3.12" || pythonAtLeast "3.13";
dependencies = [
onnx
paddlepaddle
];
meta = {
description = "ONNX Model Exporter for PaddlePaddle";
homepage = "https://github.com/PaddlePaddle/Paddle2ONNX";
changelog = "https://github.com/PaddlePaddle/Paddle2ONNX/releases/tag/v${version}";
mainProgram = "paddle2onnx";
license = lib.licenses.asl20;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ happysalada ];
};
}
|