nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 68 lines 1.3 kB view raw
1{ lib 2, aiodns 3, aiohttp 4, buildPythonPackage 5, certifi 6, fetchFromGitHub 7, httpretty 8, isodate 9, pytest-aiohttp 10, pytestCheckHook 11, pythonOlder 12, requests 13, requests-oauthlib 14, trio 15}: 16 17buildPythonPackage rec { 18 pname = "msrest"; 19 version = "0.6.21"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchFromGitHub { 25 owner = "Azure"; 26 repo = "msrest-for-python"; 27 rev = "v${version}"; 28 hash = "sha256-IlBwlVQ/v+vJmCWNbFZKGL6a9K09z4AYrPm3kwaA/nI="; 29 }; 30 31 propagatedBuildInputs = [ 32 aiodns 33 aiohttp 34 certifi 35 isodate 36 requests 37 requests-oauthlib 38 ]; 39 40 checkInputs = [ 41 httpretty 42 pytest-aiohttp 43 pytestCheckHook 44 trio 45 ]; 46 47 disabledTests = [ 48 # Test require network access 49 "test_basic_aiohttp" 50 "test_basic_aiohttp" 51 "test_basic_async_requests" 52 "test_basic_async_requests" 53 "test_conf_async_requests" 54 "test_conf_async_requests" 55 "test_conf_async_trio_requests" 56 ]; 57 58 pythonImportsCheck = [ 59 "msrest" 60 ]; 61 62 meta = with lib; { 63 description = "The runtime library for AutoRest generated Python clients"; 64 homepage = "https://github.com/Azure/msrest-for-python"; 65 license = licenses.mit; 66 maintainers = with maintainers; [ bendlas jonringer maxwilson ]; 67 }; 68}