567e8dfd8e
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>
46 lines
872 B
Nix
46 lines
872 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 = {
|
|
homepage = "https://github.com/mozilla-services/hawkauthlib";
|
|
description = "Hawk Access Authentication protocol";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|