mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 17:46:38 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cacert,
|
|
cachelib,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
flask,
|
|
flask-sqlalchemy,
|
|
httpx,
|
|
mock,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
python-multipart,
|
|
requests,
|
|
setuptools,
|
|
starlette,
|
|
werkzeug,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "authlib";
|
|
version = "1.6.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lepture";
|
|
repo = "authlib";
|
|
tag = "v${version}";
|
|
hash = "sha256-lz2cPqag6lZ9PXb3O/SV4buIPDDzhI71/teqWHLG+vE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
cryptography
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
cachelib
|
|
flask
|
|
flask-sqlalchemy
|
|
httpx
|
|
mock
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
python-multipart
|
|
requests
|
|
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 = {
|
|
description = "Library for building OAuth and OpenID Connect servers";
|
|
homepage = "https://github.com/lepture/authlib";
|
|
changelog = "https://github.com/lepture/authlib/blob/${src.tag}/docs/changelog.rst";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ flokli ];
|
|
};
|
|
}
|