at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchPypi, 6 grequests, 7 hawkauthlib, 8 mock, 9 pybrowserid, 10 pyjwt, 11 pytestCheckHook, 12 pythonOlder, 13 requests, 14 responses, 15 hatchling, 16 parameterized, 17}: 18 19buildPythonPackage rec { 20 pname = "pyfxa"; 21 version = "0.8.1"; 22 pyproject = true; 23 24 disabled = pythonOlder "3.7"; 25 26 src = fetchPypi { 27 inherit pname version; 28 hash = "sha256-3zxXWzFOjWcnX8hAQpRzGlzTmnXjZjn9jF+MdsHuGkw="; 29 }; 30 31 build-system = [ hatchling ]; 32 33 dependencies = [ 34 cryptography 35 hawkauthlib 36 pybrowserid 37 pyjwt 38 requests 39 ]; 40 41 nativeCheckInputs = [ 42 grequests 43 mock 44 responses 45 pytestCheckHook 46 parameterized 47 ]; 48 49 pythonImportsCheck = [ "fxa" ]; 50 51 disabledTestPaths = [ 52 # Requires network access 53 "fxa/tests/test_core.py" 54 "fxa/tests/test_oauth.py" 55 ]; 56 57 meta = with lib; { 58 description = "Firefox Accounts client library"; 59 mainProgram = "fxa-client"; 60 homepage = "https://github.com/mozilla/PyFxA"; 61 license = licenses.mpl20; 62 maintainers = [ ]; 63 }; 64}