depot/third_party/nixpkgs/pkgs/development/python-modules/pyfxa/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

37 lines
859 B
Nix

{ lib, buildPythonPackage, fetchPypi
, requests, cryptography, pybrowserid, hawkauthlib, six
, grequests, mock, responses, pytest, pyjwt }:
buildPythonPackage rec {
pname = "PyFxA";
version = "0.7.7";
src = fetchPypi {
inherit pname version;
sha256 = "6c85cd08cf05f7138dee1cf2a8a1d68fd428b7b5ad488917c70a2a763d651cdb";
};
postPatch = ''
# Requires network access
rm fxa/tests/test_core.py
'';
propagatedBuildInputs = [
pyjwt requests cryptography pybrowserid hawkauthlib six
];
checkInputs = [
grequests mock responses pytest
];
# test_oath is mostly network calls
checkPhase = ''
pytest --ignore=fxa/tests/test_oauth.py
'';
meta = with lib; {
description = "Firefox Accounts client library for Python";
homepage = "https://github.com/mozilla/PyFxA";
license = licenses.mpl20;
};
}