Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
878 B
Nix
46 lines
878 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
requests,
|
|
webob,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hawkauthlib";
|
|
version = "2.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozilla-services";
|
|
repo = "hawkauthlib";
|
|
tag = "v${version}";
|
|
hash = "sha256-dFBGrk7vdZMNTuWvXXWXA4iF/vmiUnK9ds8edN2Yt10=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace hawkauthlib/tests/* \
|
|
--replace-warn 'assertEquals' 'assertEqual'
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
requests
|
|
webob
|
|
];
|
|
|
|
pythonImportsCheck = [ "hawkauthlib" ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mozilla-services/hawkauthlib";
|
|
description = "Hawk Access Authentication protocol";
|
|
license = licenses.mpl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|