2024-06-05 15:53:02 +00:00
{
lib ,
buildPythonPackage ,
fetchFromGitHub ,
stdenv ,
# 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 " ;
2024-07-27 06:49:29 +00:00
version = " 2 . 0 . 0 " ;
2024-04-21 15:54:59 +00:00
pyproject = true ;
src = fetchFromGitHub {
owner = " r h a s s p y " ;
repo = " p y s i l e r o - v a d " ;
2024-07-27 06:49:29 +00:00
rev = " r e f s / t a g s / v ${ version } " ;
hash = " s h a 2 5 6 - p 0 p P h Q o / r a Z h l H e t t m o c 7 F w n l Z H 9 n 2 N I 4 t Y H v i k J 8 i 4 = " ;
2024-04-21 15:54:59 +00:00
} ;
2024-07-27 06:49:29 +00:00
build-system = [ setuptools ] ;
2024-04-21 15:54:59 +00:00
2024-06-05 15:53:02 +00:00
pythonRelaxDeps = [ " n u m p y " ] ;
2024-04-21 15:54:59 +00:00
2024-07-27 06:49:29 +00:00
dependencies = [
2024-04-21 15:54:59 +00:00
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 ] ;
} ;
}