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



                        
                     
 




                                                                    

    
                           


              

    


                   
 
                                      
 
                    
                                                      




                                                       
{ lib
, buildPythonPackage
, fetchFromGitHub
, paramiko
, selectors2
, lxml
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "ncclient";
  version = "0.6.12";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "v${version}";
    sha256 = "1sjvqaxb54nmqljiw5bg1423msa9rg015wiix9fsm6djk3wpklmk";
  };

  propagatedBuildInputs = [
    paramiko
    lxml
    selectors2
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "ncclient" ];

  meta = with lib; {
    homepage = "https://github.com/ncclient/ncclient";
    description = "Python library for NETCONF clients";
    license = licenses.asl20;
    maintainers = with maintainers; [ xnaveira ];
  };
}