mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +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.
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cachelib
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, flask
|
|
, flask-sqlalchemy
|
|
, httpx
|
|
, mock
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, starlette
|
|
, werkzeug
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "authlib";
|
|
version = "1.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lepture";
|
|
repo = "authlib";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-OYfvfPnpWE9g7L9cFXUD95B/9+OZy55ZVbmFhFgguUg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
cachelib
|
|
flask
|
|
flask-sqlalchemy
|
|
httpx
|
|
mock
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
starlette
|
|
werkzeug
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"authlib"
|
|
];
|
|
disabledTestPaths = [
|
|
# Django tests require a running instance
|
|
"tests/django/"
|
|
"tests/clients/test_django/"
|
|
# Unsupported encryption algorithm
|
|
"tests/jose/test_chacha20.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for building OAuth and OpenID Connect servers";
|
|
homepage = "https://github.com/lepture/authlib";
|
|
changelog = "https://github.com/lepture/authlib/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ flokli ];
|
|
};
|
|
}
|