mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
Merge pull request #165673 from r-ryantm/auto-update/python310Packages.requests-aws4auth
This commit is contained in:
commit
db41679ebf
1 changed files with 33 additions and 17 deletions
|
@ -1,30 +1,46 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, python, requests, six }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, httpx
|
||||
, pytestCheckHook
|
||||
, python
|
||||
, pythonOlder
|
||||
, requests
|
||||
, six
|
||||
}:
|
||||
|
||||
with lib;
|
||||
buildPythonPackage rec {
|
||||
pname = "requests-aws4auth";
|
||||
version = "1.1.1";
|
||||
version = "1.1.2";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c0883346ce30b5018903a67da88df72f73ff06e1a320845bba9cd85e811ba0ba";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tedder";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-/SqU/ojP9I4JXzR0c5tLzxx9UyNaVsON7LG/dbdeiH0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests six ];
|
||||
propagatedBuildInputs = [
|
||||
httpx
|
||||
requests
|
||||
six
|
||||
];
|
||||
|
||||
# pypi package no longer contains tests
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
cd requests_aws4auth
|
||||
${python.interpreter} test/requests_aws4auth_test.py
|
||||
'';
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "requests_aws4auth" ];
|
||||
pythonImportsCheck = [
|
||||
"requests_aws4auth"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Amazon Web Services version 4 authentication for the Python Requests library.";
|
||||
meta = with lib; {
|
||||
description = "Amazon Web Services version 4 authentication for the Python Requests library";
|
||||
homepage = "https://github.com/sam-washington/requests-aws4auth";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.basvandijk ];
|
||||
maintainers = with maintainers; [ basvandijk ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue