# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
DISTUTILS_SINGLE_IMPL=1
PYTHON_COMPAT=( python3_{12..14} )

inherit distutils-r1 pypi

DESCRIPTION="Differentiable digital signal processing for PyTorch"
HOMEPAGE="
	https://github.com/adefossez/julius
	https://pypi.org/project/julius/
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

# Upstream pins torch>=1.7.0 in setup.py; SINGLE_IMPL inherited from
# sci-ml/pytorch.
RDEPEND="
	sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
"

# Tests exist but pull resampy + onnxruntime + audio fixtures we don't carry.
RESTRICT="test"