Files
nixpkgs/pkgs/development/python-modules/httpx-auth/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
pyjwt,
pytest-asyncio,
pytest-httpx,
pytestCheckHook,
pythonOlder,
setuptools,
setuptools-scm,
time-machine,
}:
buildPythonPackage rec {
pname = "httpx-auth";
version = "0.23.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Colin-b";
repo = "httpx_auth";
tag = "v${version}";
hash = "sha256-wrPKUAGBzzuWNtwYtTtqOhb1xqYgc83uxn4rjbfDPmo=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [ httpx ];
nativeCheckInputs = [
pyjwt
pytest-asyncio
pytest-httpx
pytestCheckHook
time-machine
];
pythonImportsCheck = [ "httpx_auth" ];
__darwinAllowLocalNetworking = true;
meta = {
description = "Authentication classes to be used with httpx";
homepage = "https://github.com/Colin-b/httpx_auth";
changelog = "https://github.com/Colin-b/httpx_auth/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}