Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 36 lines 773 B view raw
1{ lib, buildPythonPackage, fetchPypi 2, requests, cryptography, pybrowserid, hawkauthlib, six 3, grequests, mock, responses, pytest }: 4 5buildPythonPackage rec { 6 pname = "PyFxA"; 7 version = "0.7.3"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "f47f4285629fa6c033c79adc3fb90926c0818a42cfddb04d32818547362f1627"; 12 }; 13 14 postPatch = '' 15 # Requires network access 16 rm fxa/tests/test_core.py 17 ''; 18 19 propagatedBuildInputs = [ 20 requests cryptography pybrowserid hawkauthlib six 21 ]; 22 23 checkInputs = [ 24 grequests mock responses pytest 25 ]; 26 27 checkPhase = '' 28 pytest 29 ''; 30 31 meta = with lib; { 32 description = "Firefox Accounts client library for Python"; 33 homepage = https://github.com/mozilla/PyFxA; 34 license = licenses.mpl20; 35 }; 36}