3
0
Fork 0
forked from mirrors/nixpkgs

python310Packages.paddle2onnx: init at 1.0.6

This commit is contained in:
happysalada 2023-07-06 08:29:56 +08:00 committed by Yt
parent 0370873ed3
commit b310289e0d
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
, onnx
, isPy311
}:
let
pname = "paddle2onnx";
version = "1.0.6";
format = "wheel";
pyShortVersion = "cp${builtins.replaceStrings ["."] [""] python.pythonVersion}";
src = fetchPypi {
inherit pname version format;
dist = pyShortVersion;
python = pyShortVersion;
abi = pyShortVersion;
platform = "manylinux_2_12_x86_64.manylinux2010_x86_64";
hash = "sha256-qHy6+RKh/gjy1mBmIj+1ENcHuIERkOeM6rrd5GNfX+Q=";
};
in
buildPythonPackage {
inherit pname version src format;
disabled = pythonOlder "3.8" || isPy311;
propagatedBuildInputs = [
onnx
];
meta = with lib; {
description = "ONNX Model Exporter for PaddlePaddle";
homepage = "https://github.com/PaddlePaddle/Paddle2ONNX";
changelog = "https://github.com/PaddlePaddle/Paddle2ONNX/releases/tag/v${version}";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ happysalada ];
};
}

View file

@ -1165,6 +1165,8 @@ self: super: with self; {
paddle_bfloat = callPackage ../development/python-modules/paddle_bfloat { };
paddle2onnx = callPackage ../development/python-modules/paddle2onnx { };
pulumi = callPackage ../development/python-modules/pulumi { inherit (pkgs) pulumi; };
pulumi-aws = callPackage ../development/python-modules/pulumi-aws { };