1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
lib,
|
|
matplotlib,
|
|
numpy,
|
|
pyaudio,
|
|
pydub,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "auditok";
|
|
version = "0.1.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "auditok";
|
|
hash = "sha256-HNsw9VLP7XEgs8E2X6p7ygDM47AwWxMYjptipknFig4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
matplotlib
|
|
numpy
|
|
pyaudio
|
|
pydub
|
|
];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
unittestFlagsArray = [
|
|
"-s"
|
|
"tests"
|
|
];
|
|
|
|
pythonImportsCheck = [ "auditok" ];
|
|
|
|
# The most recent version is 0.2.0, but the only dependent package is
|
|
# ffsubsync, which is pinned at 0.1.5.
|
|
passthru.skipBulkUpdate = true;
|
|
|
|
meta = {
|
|
description = "Audio Activity Detection tool that can process online data as well as audio files";
|
|
mainProgram = "auditok";
|
|
homepage = "https://github.com/amsehili/auditok/";
|
|
changelog = "https://github.com/amsehili/auditok/blob/v${version}/CHANGELOG";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|