8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
36 lines
775 B
Nix
36 lines
775 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, requests, cryptography, pybrowserid, hawkauthlib, six
|
|
, grequests, mock, responses, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyFxA";
|
|
version = "0.7.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f47f4285629fa6c033c79adc3fb90926c0818a42cfddb04d32818547362f1627";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Requires network access
|
|
rm fxa/tests/test_core.py
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
requests cryptography pybrowserid hawkauthlib six
|
|
];
|
|
|
|
checkInputs = [
|
|
grequests mock responses pytest
|
|
];
|
|
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Firefox Accounts client library for Python";
|
|
homepage = "https://github.com/mozilla/PyFxA";
|
|
license = licenses.mpl20;
|
|
};
|
|
}
|