nixpkgs-suyu/pkgs/development/python-modules/pyfxa/default.nix

37 lines
773 B
Nix
Raw Normal View History

2018-08-07 10:36:23 +02:00
{ lib, buildPythonPackage, fetchPypi
, requests, cryptography, pybrowserid, hawkauthlib, six
2019-12-02 19:59:52 +01:00
, grequests, mock, responses, pytest }:
2018-08-07 10:36:23 +02:00
buildPythonPackage rec {
pname = "PyFxA";
2019-10-24 08:47:44 +02:00
version = "0.7.3";
2018-08-07 10:36:23 +02:00
src = fetchPypi {
inherit pname version;
2019-10-24 08:47:44 +02:00
sha256 = "f47f4285629fa6c033c79adc3fb90926c0818a42cfddb04d32818547362f1627";
2018-08-07 10:36:23 +02:00
};
postPatch = ''
# Requires network access
rm fxa/tests/test_core.py
'';
propagatedBuildInputs = [
requests cryptography pybrowserid hawkauthlib six
];
checkInputs = [
2019-12-02 19:59:52 +01:00
grequests mock responses pytest
2018-08-07 10:36:23 +02:00
];
2019-12-02 19:59:52 +01:00
checkPhase = ''
pytest
'';
2018-08-07 10:36:23 +02:00
meta = with lib; {
description = "Firefox Accounts client library for Python";
homepage = https://github.com/mozilla/PyFxA;
license = licenses.mpl20;
};
}