mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 22:45:08 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
44 lines
961 B
Nix
44 lines
961 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3Packages
|
|
, ffmpeg
|
|
,
|
|
}:
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "unsilence";
|
|
version = "1.0.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lagmoellertim";
|
|
repo = "unsilence";
|
|
rev = version;
|
|
hash = "sha256-M4Ek1JZwtr7vIg14aTa8h4otIZnPQfKNH4pZE4GpiBQ=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
rich
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
python3Packages.rich
|
|
python3Packages.setuptools # imports pkg_resources.parse_version
|
|
];
|
|
|
|
makeWrapperArgs = [
|
|
"--suffix PATH : ${lib.makeBinPath [ ffmpeg ]}"
|
|
];
|
|
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "unsilence" ];
|
|
|
|
pythonRelaxDeps = [ "rich" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/lagmoellertim/unsilence";
|
|
description = "Console Interface and Library to remove silent parts of a media file";
|
|
mainProgram = "unsilence";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ esau79p ];
|
|
};
|
|
}
|