My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/http-message-signatures/default.nix

56 lines
1006 B

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, http-sfv
, pytestCheckHook
, pythonOlder
, setuptools-scm
, requests
}:
buildPythonPackage rec {
pname = "http-message-signatures";
version = "0.4.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pyauth";
repo = pname;
rev = "v${version}";
hash = "sha256-CMF9p913P04Hx/221ck1e0AoAsP7aXkX2UKp4S1nnU0=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
cryptography
http-sfv
];
checkInputs = [
pytestCheckHook
requests
];
pytestFlagsArray = [
"test/test.py"
];
pythonImportsCheck = [
"http_message_signatures"
];
meta = with lib; {
description = "Requests authentication module for HTTP Signature";
homepage = "https://github.com/pyauth/http-message-signatures";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}