Merge pull request #154861 from fabaff/bump-serverlessrepo

python310Packages.serverlessrepo: relax dependency constraints

authored by Fabian Affolter and committed by GitHub c82adf9e 9e73373e

+33 -15
+22 -5
pkgs/development/python-modules/serverlessrepo/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 - , pytest 5 , boto3 6 , six 7 , pyyaml 8 , mock 9 }: 10 11 buildPythonPackage rec { 12 pname = "serverlessrepo"; 13 version = "0.1.10"; 14 15 src = fetchPypi { 16 inherit pname version; ··· 23 pyyaml 24 ]; 25 26 - checkInputs = [ pytest mock ]; 27 28 - checkPhase = '' 29 - pytest tests/unit 30 ''; 31 32 meta = with lib; { 33 homepage = "https://github.com/awslabs/aws-serverlessrepo-python"; 34 description = "Helpers for working with the AWS Serverless Application Repository"; ··· 36 A Python library with convenience helpers for working with the 37 AWS Serverless Application Repository. 38 ''; 39 - license = lib.licenses.asl20; 40 maintainers = with maintainers; [ dhkl ]; 41 }; 42 }
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , pytestCheckHook 5 , boto3 6 , six 7 , pyyaml 8 , mock 9 + , pythonOlder 10 }: 11 12 buildPythonPackage rec { 13 pname = "serverlessrepo"; 14 version = "0.1.10"; 15 + format = "setuptools"; 16 + 17 + disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; ··· 27 pyyaml 28 ]; 29 30 + checkInputs = [ 31 + pytestCheckHook 32 + mock 33 + ]; 34 35 + postPatch = '' 36 + substituteInPlace setup.py \ 37 + --replace "pyyaml~=5.1" "pyyaml" \ 38 + --replace "boto3~=1.9, >=1.9.56" "boto3" 39 ''; 40 41 + pytestFlagsArray = [ 42 + "tests/unit" 43 + ]; 44 + 45 + pythonImportsCheck = [ 46 + "serverlessrepo" 47 + ]; 48 + 49 meta = with lib; { 50 homepage = "https://github.com/awslabs/aws-serverlessrepo-python"; 51 description = "Helpers for working with the AWS Serverless Application Repository"; ··· 53 A Python library with convenience helpers for working with the 54 AWS Serverless Application Repository. 55 ''; 56 + license = licenses.asl20; 57 maintainers = with maintainers; [ dhkl ]; 58 }; 59 }
+11 -10
pkgs/development/tools/aws-sam-cli/default.nix
··· 5 6 python3.pkgs.buildPythonApplication rec { 7 pname = "aws-sam-cli"; 8 - version = "1.36.0"; 9 10 src = python3.pkgs.fetchPypi { 11 inherit pname version; 12 - sha256 = "sha256-GJbBhe1l25ZHGWVu1o2oJvd/BNv8dv7aIYor/ebFl9U="; 13 }; 14 - 15 - # Tests are not included in the PyPI package 16 - doCheck = false; 17 18 propagatedBuildInputs = with python3.pkgs; [ 19 aws-lambda-builders ··· 42 # fix over-restrictive version bounds 43 postPatch = '' 44 substituteInPlace requirements/base.txt \ 45 --replace "click~=7.1" "click~=8.0" \ 46 - --replace "Flask~=1.1.2" "Flask~=2.0" \ 47 --replace "dateparser~=1.0" "dateparser>=0.7" \ 48 --replace "docker~=4.2.0" "docker>=4.2.0" \ 49 --replace "requests==" "requests #" \ 50 - --replace "watchdog==" "watchdog #" \ 51 - --replace "aws_lambda_builders==" "aws-lambda-builders #" \ 52 --replace "typing_extensions==" "typing-extensions #" \ 53 - --replace "regex==" "regex #" \ 54 - --replace "tzlocal==3.0" "tzlocal" 55 ''; 56 57 meta = with lib; { 58 homepage = "https://github.com/awslabs/aws-sam-cli";
··· 5 6 python3.pkgs.buildPythonApplication rec { 7 pname = "aws-sam-cli"; 8 + version = "1.37.0"; 9 10 src = python3.pkgs.fetchPypi { 11 inherit pname version; 12 + hash = "sha256-XE3g2mKwAiaJvi0ShVScnCKrmz7ujaQgOeFXuYwtP4g="; 13 }; 14 15 propagatedBuildInputs = with python3.pkgs; [ 16 aws-lambda-builders ··· 39 # fix over-restrictive version bounds 40 postPatch = '' 41 substituteInPlace requirements/base.txt \ 42 + --replace "aws_lambda_builders==" "aws-lambda-builders #" \ 43 --replace "click~=7.1" "click~=8.0" \ 44 --replace "dateparser~=1.0" "dateparser>=0.7" \ 45 --replace "docker~=4.2.0" "docker>=4.2.0" \ 46 + --replace "Flask~=1.1.2" "Flask~=2.0" \ 47 + --replace "PyYAML~=5.3" "PyYAML" \ 48 + --replace "regex==" "regex #" \ 49 --replace "requests==" "requests #" \ 50 --replace "typing_extensions==" "typing-extensions #" \ 51 + --replace "tzlocal==3.0" "tzlocal" \ 52 + --replace "watchdog==" "watchdog #" 53 ''; 54 + 55 + # Tests are not included in the PyPI package 56 + doCheck = false; 57 58 meta = with lib; { 59 homepage = "https://github.com/awslabs/aws-sam-cli";