python310Packages.pyfxa: switch to pytestCheckHook
- add pythonImportsCheck - update pname
This commit is contained in:
@@ -1,38 +1,64 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib
|
||||||
, requests, cryptography, pybrowserid, hawkauthlib, six
|
, buildPythonPackage
|
||||||
, grequests, mock, responses, pytest, pyjwt, setuptools }:
|
, cryptography
|
||||||
|
, fetchPypi
|
||||||
|
, grequests
|
||||||
|
, hawkauthlib
|
||||||
|
, mock
|
||||||
|
, pybrowserid
|
||||||
|
, pyjwt
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
, responses
|
||||||
|
, setuptools
|
||||||
|
, six
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "PyFxA";
|
pname = "pyfxa";
|
||||||
version = "0.7.7";
|
version = "0.7.7";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
pname = "PyFxA";
|
||||||
sha256 = "6c85cd08cf05f7138dee1cf2a8a1d68fd428b7b5ad488917c70a2a763d651cdb";
|
inherit version;
|
||||||
|
hash = "sha256-bIXNCM8F9xON7hzyqKHWj9Qot7WtSIkXxwoqdj1lHNs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# Requires network access
|
|
||||||
rm fxa/tests/test_core.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pyjwt requests cryptography pybrowserid hawkauthlib six
|
cryptography
|
||||||
|
hawkauthlib
|
||||||
|
pybrowserid
|
||||||
|
pyjwt
|
||||||
|
requests
|
||||||
setuptools # imports pkg_resources
|
setuptools # imports pkg_resources
|
||||||
|
six
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
grequests mock responses pytest
|
grequests
|
||||||
|
mock
|
||||||
|
responses
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# test_oath is mostly network calls
|
pythonImportsCheck = [
|
||||||
checkPhase = ''
|
"fxa"
|
||||||
pytest --ignore=fxa/tests/test_oauth.py
|
];
|
||||||
'';
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# Requires network access
|
||||||
|
"fxa/tests/test_core.py"
|
||||||
|
"fxa/tests/test_oauth.py"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Firefox Accounts client library for Python";
|
description = "Firefox Accounts client library";
|
||||||
homepage = "https://github.com/mozilla/PyFxA";
|
homepage = "https://github.com/mozilla/PyFxA";
|
||||||
license = licenses.mpl20;
|
license = licenses.mpl20;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user