blob: dfe5a03e7cc79fa4aca3c3d4768820e4d1e138f5 (
plain) (
blame)
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
51
52
53
54
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, packaging
, protobuf
, onnx
, unittestCheckHook
, onnxruntime
}:
buildPythonPackage rec {
pname = "onnxconverter-common";
version = "1.14.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "microsoft";
repo = "onnxconverter-common";
rev = "refs/tags/v${version}";
hash = "sha256-NbHyjLcr/Gq1zRiJW3ZBpEVQGVQGhp7SmfVd5hBIi2o=";
};
propagatedBuildInputs = [
numpy
packaging
protobuf
onnx
];
pythonImportsCheck = [
"onnxconverter_common"
];
nativeCheckInputs = [
onnxruntime
unittestCheckHook
];
unittestFlagsArray = [ "-s" "tests" ];
# Failing tests
# https://github.com/microsoft/onnxconverter-common/issues/242
doCheck = false;
meta = {
description = "ONNX Converter and Optimization Tools";
homepage = "https://github.com/microsoft/onnxconverter-common";
changelog = "https://github.com/microsoft/onnxconverter-common/releases/tag/v${version}";
maintainers = with lib.maintainers; [ fridh ];
license = with lib.licenses; [ mit ];
};
}
|