ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / get-video-properties / default.nix
blob89e01fedc13d9eb03afd64622f44bdff62998442
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , ffmpeg
5 }:
7 buildPythonPackage rec {
8   pname = "get-video-properties";
9   version = "0.1.1";
11   src = fetchFromGitHub {
12     owner = "mvasilkov";
13     repo = "python-get-video-properties";
14     rev = "944c68addbc27e320ebc6313d3f016fb69b5e880";
15     sha256 = "18aslx7amaiw31bl9gambmvzry7hp5nqab6kgp8sg3mz9ih4lzal";
16   };
18   # no tests
19   doCheck = false;
21   postPatch = ''
22     substituteInPlace videoprops/__init__.py \
23       --replace "which('ffprobe')" "'${ffmpeg}/bin/ffprobe'"
24   '';
26   pythonImportsCheck = [ "videoprops" ];
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   };