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




                    

                    
        
              
               



                          
                     

                          
                                                                                
    
                                       
                                       




                 

                 
                                       

     





                                                                
 
{ lib
, buildPythonPackage
, fetchPypi
, requests
, python

# For tests/setup.py
, pytest
, pytestrunner
, requests-mock
}:

buildPythonPackage rec {
  pname = "packet-python";
  version = "1.44.0";
  src = fetchPypi {
    inherit pname version;
    sha256 = "4af12f2fbcc9713878ab4ed571e9fda028bc68add34cde0e7226af4d833a4d38";
  };
  nativeBuildInputs = [ pytestrunner ];
  propagatedBuildInputs = [ requests ];
  checkInputs = [
    pytest
    pytestrunner
    requests-mock
  ];

  checkPhase = ''
    ${python.interpreter} setup.py test
  '';

  meta = {
    description = "A Python client for the Packet API.";
    homepage    = "https://github.com/packethost/packet-python";
    license     = lib.licenses.lgpl3;
    maintainers = with lib.maintainers; [ dipinhora ];
  };
}