Merge pull request #258216 from mbalatsko/init-python-mypy-boto3-cognito-idp

python3Packages.mypy-boto3-cognito-idp: init at 1.28.36
This commit is contained in:
Fabian Affolter 2023-10-02 21:31:49 +02:00 committed by GitHub
commit fd4a9961a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 87 deletions

View file

@ -1,39 +0,0 @@
{ lib
, boto3
, buildPythonPackage
, fetchPypi
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "mypy-boto3-ebs";
version = "1.28.36";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-w9OLKJAn9UBnA7x+uedhplSV8plZRYlBpviU9Gv1Ny8=";
};
propagatedBuildInputs = [
boto3
typing-extensions
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"mypy_boto3_ebs"
];
meta = with lib; {
description = "Type annotations for boto3.s3";
homepage = "https://github.com/youtype/mypy_boto3_builder";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1,46 +0,0 @@
{ lib
, boto3
, buildPythonPackage
, cython_3
, fetchPypi
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "mypy-boto3-s3";
version = "1.28.55";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-sAiAn0SOdAdQEtT8VLAXbeC09JvDjjneMMoOdk63UFY=";
};
nativeBuildInputs = [
cython_3
];
propagatedBuildInputs = [
boto3
] ++ lib.optionals (pythonOlder "3.12") [
typing-extensions
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"mypy_boto3_s3"
];
meta = with lib; {
description = "Type annotations for boto3.s3";
homepage = "https://github.com/youtype/mypy_boto3_builder";
changelog = "https://github.com/youtype/mypy_boto3_builder/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,52 @@
{ lib
, boto3
, buildPythonPackage
, pythonOlder
, typing-extensions
, fetchPypi
}:
let
toUnderscore = str: builtins.replaceStrings [ "-" ] [ "_" ] str;
buildMypyBoto3Package = serviceName: version: hash:
buildPythonPackage rec {
pname = "mypy-boto3-${serviceName}";
inherit version;
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version hash;
};
propagatedBuildInputs = [
boto3
] ++ lib.optionals (pythonOlder "3.12") [
typing-extensions
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"mypy_boto3_${toUnderscore serviceName}"
];
meta = with lib; {
description = "Type annotations for boto3 ${serviceName}";
homepage = "https://github.com/youtype/mypy_boto3_builder";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab mbalatsko ];
};
};
in
rec {
mypy-boto3-cognito-idp = buildMypyBoto3Package "cognito-idp" "1.28.36" "sha256-pnLO62LZvr4sJsye3gWJROY+xHikSe7dX8erBTRXrPc=";
mypy-boto3-ebs = buildMypyBoto3Package "ebs" "1.28.36" "sha256-w9OLKJAn9UBnA7x+uedhplSV8plZRYlBpviU9Gv1Ny8=";
mypy-boto3-s3 = buildMypyBoto3Package "s3" "1.28.55" "sha256-sAiAn0SOdAdQEtT8VLAXbeC09JvDjjneMMoOdk63UFY=";
}

View file

@ -7079,9 +7079,15 @@ self: super: with self; {
mypy-boto3-builder = callPackage ../development/python-modules/mypy-boto3-builder { };
mypy-boto3-ebs = callPackage ../development/python-modules/mypy-boto3-ebs { };
inherit (callPackage ../development/python-modules/mypy-boto3 { })
mypy-boto3-s3 = callPackage ../development/python-modules/mypy-boto3-s3 { };
mypy-boto3-cognito-idp
mypy-boto3-ebs
mypy-boto3-s3
;
mypy-extensions = callPackage ../development/python-modules/mypy/extensions.nix { };