2024-03-26 11:26:06 -04:00
|
|
|
{
|
|
|
|
callPackage,
|
|
|
|
ffmpeg,
|
|
|
|
pkg-config,
|
|
|
|
pocketsphinx-src,
|
|
|
|
python3Packages,
|
|
|
|
subsync-src,
|
|
|
|
...
|
|
|
|
} @ pkgs: let
|
|
|
|
inherit (builtins) concatStringsSep;
|
|
|
|
|
|
|
|
sphinxbase = callPackage ./sphinxbase.nix pkgs;
|
|
|
|
|
|
|
|
pocketsphinx =
|
|
|
|
callPackage ./pocketsphinx.nix (pkgs
|
|
|
|
// {inherit pocketsphinx-src sphinxbase;});
|
|
|
|
in
|
|
|
|
python3Packages.buildPythonPackage {
|
|
|
|
pname = "subsync";
|
|
|
|
version = subsync-src.shortRev;
|
|
|
|
|
|
|
|
src = subsync-src;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ffmpeg
|
|
|
|
pkg-config
|
|
|
|
sphinxbase
|
2024-03-29 23:04:52 -04:00
|
|
|
pocketsphinx
|
2024-03-26 11:26:06 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
pip
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
certifi
|
|
|
|
cryptography
|
|
|
|
pybind11
|
|
|
|
pycryptodome
|
|
|
|
pysubs2
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
utils
|
|
|
|
];
|
|
|
|
|
2024-03-29 23:04:52 -04:00
|
|
|
patches = [./patches/cstdint.patch];
|
2024-03-26 11:26:06 -04:00
|
|
|
|
|
|
|
# The tests are for the GUI
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# 'pip install .' takes care of building the package
|
|
|
|
buildPhase = "";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
python -m pip install . ${concatStringsSep " " [
|
|
|
|
"--no-index"
|
|
|
|
"--no-warn-script-location"
|
|
|
|
"--prefix=\"$out\""
|
|
|
|
"--no-cache"
|
|
|
|
]}
|
|
|
|
'';
|
|
|
|
}
|