python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / get-video-properties / default.nix
blob70b2c568f6b701a146e508657a4ced3e9f7919bc
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   ffmpeg-headless,
6 }:
8 buildPythonPackage rec {
9   pname = "get-video-properties";
10   version = "0.1.1";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     owner = "mvasilkov";
15     repo = "python-get-video-properties";
16     rev = "944c68addbc27e320ebc6313d3f016fb69b5e880";
17     sha256 = "18aslx7amaiw31bl9gambmvzry7hp5nqab6kgp8sg3mz9ih4lzal";
18   };
20   # no tests
21   doCheck = false;
23   postPatch = ''
24     substituteInPlace videoprops/__init__.py \
25       --replace "which('ffprobe')" "'${ffmpeg-headless}/bin/ffprobe'"
27     # unused and vulnerable to various CVEs
28     rm -r videoprops/binary_dependencies
29   '';
31   pythonImportsCheck = [ "videoprops" ];
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   };