1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 ffmpeg-headless, 6}: 7 8buildPythonPackage { 9 pname = "get-video-properties"; 10 version = "0.1.1"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "mvasilkov"; 15 repo = "python-get-video-properties"; 16 rev = "944c68addbc27e320ebc6313d3f016fb69b5e880"; 17 sha256 = "18aslx7amaiw31bl9gambmvzry7hp5nqab6kgp8sg3mz9ih4lzal"; 18 }; 19 20 # no tests 21 doCheck = false; 22 23 postPatch = '' 24 substituteInPlace videoprops/__init__.py \ 25 --replace "which('ffprobe')" "'${ffmpeg-headless}/bin/ffprobe'" 26 27 # unused and vulnerable to various CVEs 28 rm -r videoprops/binary_dependencies 29 ''; 30 31 pythonImportsCheck = [ "videoprops" ]; 32 33 meta = with lib; { 34 description = "Get video properties"; 35 homepage = "https://github.com/mvasilkov/python-get-video-properties"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ globin ]; 38 }; 39}