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