summary refs log blame commit diff
path: root/pkgs/development/python-modules/python-vlc/default.nix
blob: de14a4010b6594f899828e85b113b91fb05103a5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                    
        
               
             



                        
                        


                               


                          
                                                                 

    
             
                        

                              
                                             


      



                           

                       
 


                        
 
                    
                                                                                                
                                                         
                                  
                                               

    
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, libvlc
, substituteAll
, pythonOlder
}:

buildPythonPackage rec {
  pname = "python-vlc";
  version = "3.0.16120";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-kvmP7giPcr1tBjs7MxLQvSmzfnrWXd6zpzAzIDAMKAc=";
  };

  patches = [
    # Patch path for VLC
    (substituteAll {
      src = ./vlc-paths.patch;
      libvlcPath="${libvlc}/lib/libvlc.so.5";
    })
  ];

  propagatedBuildInputs = [
    setuptools
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "vlc"
  ];

  meta = with lib; {
    description = "Python bindings for VLC, the cross-platform multimedia player and framework";
    homepage = "https://wiki.videolan.org/PythonBinding";
    license = licenses.lgpl21Plus;
    maintainers = with maintainers; [ tbenst ];
  };
}