Merge pull request #114579 from fabaff/bump-awair
This commit is contained in:
commit
61dcc73c91
@ -1,6 +1,19 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib
|
||||||
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, botocore
|
, botocore
|
||||||
, requests, requests-kerberos, click, configparser, fido2, isPy27 }:
|
, buildPythonPackage
|
||||||
|
, click
|
||||||
|
, configparser
|
||||||
|
, fetchPypi
|
||||||
|
, fido2
|
||||||
|
, glibcLocales
|
||||||
|
, isPy27
|
||||||
|
, lxml
|
||||||
|
, mock
|
||||||
|
, pyopenssl
|
||||||
|
, pytestCheckHook
|
||||||
|
, requests
|
||||||
|
, requests-kerberos
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aws-adfs";
|
pname = "aws-adfs";
|
||||||
@ -12,8 +25,25 @@ buildPythonPackage rec {
|
|||||||
sha256 = "6a78bd31477ea9988166215ae86abcbfe1413bee20373ecdf0dd170b7290db55";
|
sha256 = "6a78bd31477ea9988166215ae86abcbfe1413bee20373ecdf0dd170b7290db55";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
botocore
|
||||||
|
click
|
||||||
|
configparser
|
||||||
|
fido2
|
||||||
|
lxml
|
||||||
|
pyopenssl
|
||||||
|
requests
|
||||||
|
requests-kerberos
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
glibcLocales
|
||||||
|
mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
# Relax version constraint
|
# Relax version constraint
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
sed -i 's/coverage < 4/coverage/' setup.py
|
sed -i 's/coverage < 4/coverage/' setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -23,9 +53,6 @@ buildPythonPackage rec {
|
|||||||
# Required for python3 tests, along with glibcLocales
|
# Required for python3 tests, along with glibcLocales
|
||||||
LC_ALL = "en_US.UTF-8";
|
LC_ALL = "en_US.UTF-8";
|
||||||
|
|
||||||
checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ];
|
|
||||||
propagatedBuildInputs = [ botocore lxml requests requests-kerberos click configparser fido2 ];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "aws_adfs" ];
|
pythonImportsCheck = [ "aws_adfs" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, requests
|
, requests
|
||||||
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -15,6 +16,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
requests
|
||||||
|
six
|
||||||
];
|
];
|
||||||
|
|
||||||
# Pypi's tarball doesn't contain tests. Source not available.
|
# Pypi's tarball doesn't contain tests. Source not available.
|
||||||
|
@ -1,16 +1,60 @@
|
|||||||
{ lib, fetchPypi, buildPythonPackage, flask, limits }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, flask
|
||||||
|
, flask-restful
|
||||||
|
, hiro
|
||||||
|
, limits
|
||||||
|
, mock
|
||||||
|
, ordereddict
|
||||||
|
, pymemcache
|
||||||
|
, pytestCheckHook
|
||||||
|
, redis
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "Flask-Limiter";
|
pname = "Flask-Limiter";
|
||||||
version = "1.4";
|
version = "1.4";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "alisaifee";
|
||||||
sha256 = "021279c905a1e24f181377ab3be711be7541734b494f4e6db2b8edeba7601e48";
|
repo = "flask-limiter";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1k1b4b3s1acphqnar0y5g747bh1y7w35gcl5g819idq2a5vqnass";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ flask limits ];
|
propagatedBuildInputs = [ flask limits ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
hiro
|
||||||
|
mock
|
||||||
|
redis
|
||||||
|
flask-restful
|
||||||
|
pymemcache
|
||||||
|
ordereddict
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i "/--cov/d" pytest.ini
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Some tests requires a local Redis instance
|
||||||
|
disabledTests = [
|
||||||
|
"test_fallback_to_memory"
|
||||||
|
"test_reset_unsupported"
|
||||||
|
"test_constructor_arguments_over_config"
|
||||||
|
"test_fallback_to_memory_config"
|
||||||
|
"test_fallback_to_memory_backoff_check"
|
||||||
|
"test_fallback_to_memory_with_global_override"
|
||||||
|
"test_custom_key_prefix"
|
||||||
|
"test_redis_request_slower_than_fixed_window"
|
||||||
|
"test_redis_request_slower_than_moving_window"
|
||||||
|
"test_custom_key_prefix_with_headers"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "flask_limiter" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Rate limiting for flask applications";
|
description = "Rate limiting for flask applications";
|
||||||
homepage = "https://flask-limiter.readthedocs.org/";
|
homepage = "https://flask-limiter.readthedocs.org/";
|
||||||
|
@ -1,8 +1,23 @@
|
|||||||
{ lib, fetchPypi, buildPythonPackage
|
{ lib
|
||||||
, attrs, boto3, requests, gradient_statsd, terminaltables
|
, attrs
|
||||||
, click-completion , click-didyoumean, click-help-colors
|
, boto3
|
||||||
, colorama, requests_toolbelt, gradient-utils, halo, progressbar2
|
, buildPythonPackage
|
||||||
, marshmallow, pyyaml, websocket_client
|
, click-completion
|
||||||
|
, click-didyoumean
|
||||||
|
, click-help-colors
|
||||||
|
, colorama
|
||||||
|
, fetchPypi
|
||||||
|
, gradient_statsd
|
||||||
|
, gradient-utils
|
||||||
|
, halo
|
||||||
|
, marshmallow
|
||||||
|
, progressbar2
|
||||||
|
, pyopenssl
|
||||||
|
, pyyaml
|
||||||
|
, requests
|
||||||
|
, requests_toolbelt
|
||||||
|
, terminaltables
|
||||||
|
, websocket_client
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -21,11 +36,26 @@ buildPythonPackage rec {
|
|||||||
--replace 'PyYAML==' 'PyYAML>=' \
|
--replace 'PyYAML==' 'PyYAML>=' \
|
||||||
--replace 'marshmallow<' 'marshmallow>=' \
|
--replace 'marshmallow<' 'marshmallow>=' \
|
||||||
--replace 'websocket-client==' 'websocket-client>='
|
--replace 'websocket-client==' 'websocket-client>='
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ attrs boto3 requests gradient_statsd terminaltables
|
propagatedBuildInputs = [
|
||||||
click-completion click-didyoumean click-help-colors requests_toolbelt
|
attrs
|
||||||
colorama gradient-utils halo marshmallow progressbar2 pyyaml websocket_client
|
boto3
|
||||||
|
click-completion
|
||||||
|
click-didyoumean
|
||||||
|
click-help-colors
|
||||||
|
colorama
|
||||||
|
gradient_statsd
|
||||||
|
gradient-utils
|
||||||
|
halo
|
||||||
|
marshmallow
|
||||||
|
progressbar2
|
||||||
|
pyopenssl
|
||||||
|
pyyaml
|
||||||
|
requests
|
||||||
|
requests_toolbelt
|
||||||
|
terminaltables
|
||||||
|
websocket_client
|
||||||
];
|
];
|
||||||
|
|
||||||
# tries to use /homeless-shelter to mimic container usage, etc
|
# tries to use /homeless-shelter to mimic container usage, etc
|
||||||
@ -33,9 +63,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The command line interface for Gradient";
|
description = "The command line interface for Gradient";
|
||||||
homepage = "https://github.com/Paperspace/gradient-cli";
|
homepage = "https://github.com/Paperspace/gradient-cli";
|
||||||
license = licenses.isc;
|
license = licenses.isc;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ thoughtpolice ];
|
maintainers = with maintainers; [ thoughtpolice ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, cryptography
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, mock
|
, mock
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, requests
|
, requests
|
||||||
, unittest2
|
|
||||||
, six
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -19,13 +19,18 @@ buildPythonPackage rec {
|
|||||||
sha256 = "00dpf5bfsy07frsjihv1k10zmwcyq4bvkilbxha7h6nlwpcm2409";
|
sha256 = "00dpf5bfsy07frsjihv1k10zmwcyq4bvkilbxha7h6nlwpcm2409";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ mock pytest requests unittest2 ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ six ];
|
cryptography
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
# Functional tests require networking
|
checkInputs = [
|
||||||
checkPhase = ''
|
mock
|
||||||
py.test --ignore=tests/functional/test_iis.py
|
pytestCheckHook
|
||||||
'';
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "ntlm_auth" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Calculates NTLM Authentication codes";
|
description = "Calculates NTLM Authentication codes";
|
||||||
|
43
pkgs/development/python-modules/pymemcache/default.nix
Normal file
43
pkgs/development/python-modules/pymemcache/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, future
|
||||||
|
, mock
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pymemcache";
|
||||||
|
version = "3.4.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "pinterest";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0xkw76y4059jg2a902wlpk6psyh2g4x6j6vlj9gzd5vqb7ihg2y7";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
future
|
||||||
|
mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i "/--cov/d" setup.cfg
|
||||||
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# python-memcached is not available (last release in 2017)
|
||||||
|
"TestClientSocketConnect"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pymemcache" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python memcached client";
|
||||||
|
homepage = "https://pymemcache.readthedocs.io/";
|
||||||
|
license = with licenses; [ asl20 ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -2,7 +2,7 @@
|
|||||||
, aiohttp
|
, aiohttp
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, poetry
|
, poetry-core
|
||||||
, pytest-aiohttp
|
, pytest-aiohttp
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-awair";
|
pname = "python-awair";
|
||||||
version = "0.2.1";
|
version = "0.2.2";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
@ -20,10 +20,10 @@ buildPythonPackage rec {
|
|||||||
owner = "ahayworth";
|
owner = "ahayworth";
|
||||||
repo = "python_awair";
|
repo = "python_awair";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1fqjigc1a0lr9q6bjjq3j8pa39wg1cbkb0l67w94a0i4dkdfri8r";
|
sha256 = "sha256-5+s1aSvt+rXyumvf/qZ58Uvmq0p45mu23Djbwgih3qI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ poetry ];
|
nativeBuildInputs = [ poetry-core ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiohttp
|
aiohttp
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
{ lib, fetchFromGitHub, buildPythonPackage, requests, pykerberos, mock }:
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, buildPythonPackage
|
||||||
|
, cryptography
|
||||||
|
, requests
|
||||||
|
, pykerberos
|
||||||
|
, pytestCheckHook
|
||||||
|
, mock
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "requests-kerberos";
|
pname = "requests-kerberos";
|
||||||
@ -12,16 +20,26 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1qw96aw84nljh9cip372mfv50p1yyirfgigavvavgpc3c5g278s6";
|
sha256 = "1qw96aw84nljh9cip372mfv50p1yyirfgigavvavgpc3c5g278s6";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ mock ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ requests pykerberos ];
|
cryptography
|
||||||
|
requests
|
||||||
|
pykerberos
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
# they have a setup.py which mentions a test suite that doesn't exist...
|
# they have a setup.py which mentions a test suite that doesn't exist...
|
||||||
patches = [ ./fix_setup.patch ];
|
patches = [ ./fix_setup.patch ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "requests_kerberos" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An authentication handler for using Kerberos with Python Requests.";
|
description = "An authentication handler for using Kerberos with Python Requests";
|
||||||
homepage = "https://github.com/requests/requests-kerberos";
|
homepage = "https://github.com/requests/requests-kerberos";
|
||||||
license = licenses.isc;
|
license = licenses.isc;
|
||||||
maintainers = with maintainers; [ catern ];
|
maintainers = with maintainers; [ catern ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -5960,6 +5960,8 @@ in {
|
|||||||
|
|
||||||
pymeeus = callPackage ../development/python-modules/pymeeus { };
|
pymeeus = callPackage ../development/python-modules/pymeeus { };
|
||||||
|
|
||||||
|
pymemcache = callPackage ../development/python-modules/pymemcache { };
|
||||||
|
|
||||||
pymemoize = callPackage ../development/python-modules/pymemoize { };
|
pymemoize = callPackage ../development/python-modules/pymemoize { };
|
||||||
|
|
||||||
pyment = callPackage ../development/python-modules/pyment { };
|
pyment = callPackage ../development/python-modules/pyment { };
|
||||||
|
Loading…
Reference in New Issue
Block a user