at 22.05-pre 859 B view raw
1{ lib, buildPythonPackage, fetchPypi 2, requests, cryptography, pybrowserid, hawkauthlib, six 3, grequests, mock, responses, pytest, pyjwt }: 4 5buildPythonPackage rec { 6 pname = "PyFxA"; 7 version = "0.7.7"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "6c85cd08cf05f7138dee1cf2a8a1d68fd428b7b5ad488917c70a2a763d651cdb"; 12 }; 13 14 postPatch = '' 15 # Requires network access 16 rm fxa/tests/test_core.py 17 ''; 18 19 propagatedBuildInputs = [ 20 pyjwt requests cryptography pybrowserid hawkauthlib six 21 ]; 22 23 checkInputs = [ 24 grequests mock responses pytest 25 ]; 26 27 # test_oath is mostly network calls 28 checkPhase = '' 29 pytest --ignore=fxa/tests/test_oauth.py 30 ''; 31 32 meta = with lib; { 33 description = "Firefox Accounts client library for Python"; 34 homepage = "https://github.com/mozilla/PyFxA"; 35 license = licenses.mpl20; 36 }; 37}