mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 03:23:17 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
65 lines
1.0 KiB
Nix
65 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchPypi
|
|
, grequests
|
|
, hawkauthlib
|
|
, mock
|
|
, pybrowserid
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, responses
|
|
, setuptools
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyfxa";
|
|
version = "0.7.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyFxA";
|
|
inherit version;
|
|
hash = "sha256-bIXNCM8F9xON7hzyqKHWj9Qot7WtSIkXxwoqdj1lHNs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
hawkauthlib
|
|
pybrowserid
|
|
pyjwt
|
|
requests
|
|
setuptools # imports pkg_resources
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
grequests
|
|
mock
|
|
responses
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"fxa"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Requires network access
|
|
"fxa/tests/test_core.py"
|
|
"fxa/tests/test_oauth.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Firefox Accounts client library";
|
|
homepage = "https://github.com/mozilla/PyFxA";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|