Files
nixpkgs/pkgs/development/python-modules/get-video-properties/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
889 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
ffmpeg-headless,
}:
buildPythonPackage {
pname = "get-video-properties";
version = "0.1.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "mvasilkov";
repo = "python-get-video-properties";
rev = "944c68addbc27e320ebc6313d3f016fb69b5e880";
sha256 = "18aslx7amaiw31bl9gambmvzry7hp5nqab6kgp8sg3mz9ih4lzal";
};
# no tests
doCheck = false;
postPatch = ''
substituteInPlace videoprops/__init__.py \
--replace "which('ffprobe')" "'${ffmpeg-headless}/bin/ffprobe'"
# unused and vulnerable to various CVEs
rm -r videoprops/binary_dependencies
'';
pythonImportsCheck = [ "videoprops" ];
meta = {
description = "Get video properties";
homepage = "https://github.com/mvasilkov/python-get-video-properties";
license = lib.licenses.mit;
maintainers = [ ];
};
}