2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, black
|
|
|
|
, boto3
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-09-26 12:46:18 +00:00
|
|
|
, isort
|
2021-05-20 23:08:51 +00:00
|
|
|
, jinja2
|
|
|
|
, md-toc
|
|
|
|
, mdformat
|
2022-02-21 08:47:16 +00:00
|
|
|
, newversion
|
2021-09-26 12:46:18 +00:00
|
|
|
, poetry-core
|
2021-05-20 23:08:51 +00:00
|
|
|
, pyparsing
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-10-21 18:38:19 +00:00
|
|
|
, setuptools
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mypy-boto3-builder";
|
2023-03-27 19:17:25 +00:00
|
|
|
version = "7.14.2";
|
2021-09-26 12:46:18 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-02-21 08:47:16 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-10-21 18:38:19 +00:00
|
|
|
owner = "youtype";
|
2021-05-20 23:08:51 +00:00
|
|
|
repo = "mypy_boto3_builder";
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-27 19:17:25 +00:00
|
|
|
hash = "sha256-dcVEIeDsVX9bdi6IgBPHM/aVrRujmd/BHmCUCuD0v8k=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
black
|
|
|
|
boto3
|
|
|
|
isort
|
|
|
|
jinja2
|
|
|
|
md-toc
|
|
|
|
mdformat
|
2022-02-21 08:47:16 +00:00
|
|
|
newversion
|
2021-05-20 23:08:51 +00:00
|
|
|
pyparsing
|
2022-10-21 18:38:19 +00:00
|
|
|
setuptools
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-02-21 08:47:16 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mypy_boto3_builder"
|
2021-09-26 12:46:18 +00:00
|
|
|
];
|
|
|
|
|
2022-02-21 08:47:16 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"TestBotocoreChangelogChangelog"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Type annotations builder for boto3";
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://github.com/youtype/mypy_boto3_builder";
|
2022-10-21 18:38:19 +00:00
|
|
|
changelog = "https://github.com/youtype/mypy_boto3_builder/releases/tag/${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|