mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
python311Packages.httpx-auth: init at 0.18.0
This commit is contained in:
parent
45d7c0e3f9
commit
e289901d06
55
pkgs/development/python-modules/httpx-auth/default.nix
Normal file
55
pkgs/development/python-modules/httpx-auth/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, wheel
|
||||
, httpx
|
||||
, pyjwt
|
||||
, pytest-httpx
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httpx-auth";
|
||||
version = "0.18.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Colin-b";
|
||||
repo = "httpx_auth";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-kK31jpS9Ax5kNkvUSbWWIC6CKdZKVJ28kLS0iuntWqg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
httpx
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pyjwt
|
||||
pytest-httpx
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "httpx_auth" ];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
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.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
@ -5160,6 +5160,8 @@ self: super: with self; {
|
||||
|
||||
httpx = callPackage ../development/python-modules/httpx { };
|
||||
|
||||
httpx-auth = callPackage ../development/python-modules/httpx-auth { };
|
||||
|
||||
httpx-ntlm = callPackage ../development/python-modules/httpx-ntlm { };
|
||||
|
||||
httpx-socks = callPackage ../development/python-modules/httpx-socks { };
|
||||
|
Loading…
Reference in New Issue
Block a user