2024-06-05 15:53:02 +00:00
{
lib ,
buildPythonPackage ,
fetchFromGitHub ,
stdenv ,
pythonRelaxDepsHook ,
# build-system
setuptools ,
# dependencies
numpy ,
onnxruntime ,
# tests
pytestCheckHook ,
2024-04-21 15:54:59 +00:00
} :
buildPythonPackage rec {
pname = " p y s i l e r o - v a d " ;
version = " 1 . 0 . 0 " ;
pyproject = true ;
src = fetchFromGitHub {
owner = " r h a s s p y " ;
repo = " p y s i l e r o - v a d " ;
rev = " f c 1 e 3 f 7 4 e 6 2 8 2 2 4 9 c 1 f d 6 7 a b 0 f 6 5 8 3 2 a d 1 c e 9 c c 5 " ;
hash = " s h a 2 5 6 - 5 j S 2 x Z E t v z X O / f f Z z s e T T U H f E 5 2 8 W 9 F v K B 0 A K G 6 T 6 2 k = " ;
} ;
nativeBuildInputs = [
setuptools
pythonRelaxDepsHook
] ;
2024-06-05 15:53:02 +00:00
pythonRelaxDeps = [ " n u m p y " ] ;
2024-04-21 15:54:59 +00:00
propagatedBuildInputs = [
numpy
onnxruntime
] ;
2024-06-05 15:53:02 +00:00
nativeCheckInputs = [ pytestCheckHook ] ;
2024-04-21 15:54:59 +00:00
2024-06-05 15:53:02 +00:00
pythonImportsCheck = [ " p y s i l e r o _ v a d " ] ;
2024-04-21 15:54:59 +00:00
meta = with lib ; {
# what(): /build/source/include/onnxruntime/core/common/logging/logging.h:294 static const onnxruntime::logging::Logger& onnxruntime::logging::LoggingManager::DefaultLogger() Attempt to use DefaultLogger but none has been registered.
broken = stdenv . isAarch64 && stdenv . isLinux ;
description = " P r e - p a c k a g e d v o i c e a c t i v i t y d e t e c t o r u s i n g s i l e r o - v a d " ;
homepage = " h t t p s : / / g i t h u b . c o m / r h a s s p y / p y s i l e r o - v a d " ;
changelog = " h t t p s : / / g i t h u b . c o m / r h a s s p y / p y s i l e r o - v a d / b l o b / ${ src . rev } / C H A N G E L O G . m d " ;
license = licenses . mit ;
maintainers = with maintainers ; [ hexa ] ;
} ;
}