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