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

                    
             

                
                 



                        

                        
 
                               
 



                         
                                                                   










                           

                 
                  
                   

    
                   
                                                 



                      

                                      


                        




                                                        
                                               

    
 
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytest
, pytest-asyncio
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "aresponses";
  version = "2.1.5";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "CircleUp";
    repo = pname;
    rev = version;
    sha256 = "sha256-9ZzIrj87TwxQi0YMlTHFPAp0V1oxfuL0+RMGXxUxFoE=";
  };

  propagatedBuildInputs = [
    aiohttp
  ];

  buildInputs = [
    pytest
    pytest-asyncio
  ];

  checkInputs = [
    aiohttp
    pytest-asyncio
    pytestCheckHook
  ];

  disabledTests = [
    # Disable tests which requires network access
    "test_foo"
    "test_passthrough"
  ];

  __darwinAllowLocalNetworking = true;

  pythonImportsCheck = [
    "aresponses"
  ];

  meta = with lib; {
    description = "Asyncio testing server";
    homepage = "https://github.com/circleup/aresponses";
    license = licenses.mit;
    maintainers = with maintainers; [ makefu ];
  };
}