depot/third_party/nixpkgs/pkgs/development/python-modules/requests-http-signature/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

61 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, http-message-signatures
, http-sfv
, requests
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "requests-http-signature";
version = "0.7.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pyauth";
repo = pname;
rev = "v${version}";
hash = "sha256-sW2vYqT/nY27DvEKHdptc3dUpuqKmD7PLMs+Xp+cpeU=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
http-message-signatures
http-sfv
requests
];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"test/test.py"
];
disabledTests = [
# Test require network access
"test_readme_example"
];
pythonImportsCheck = [
"requests_http_signature"
];
meta = with lib; {
description = "Requests authentication module for HTTP Signature";
homepage = "https://github.com/kislyuk/requests-http-signature";
license = licenses.asl20;
maintainers = with maintainers; [ mmai ];
};
}