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
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mypy-boto3-builder";
|
2022-04-03 18:54:34 +00:00
|
|
|
version = "7.5.5";
|
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 {
|
|
|
|
owner = "vemel";
|
|
|
|
repo = "mypy_boto3_builder";
|
|
|
|
rev = version;
|
2022-04-03 18:54:34 +00:00
|
|
|
hash = "sha256-rv0c0QoXOd7aSOLhGDGfq4v0bnGBOJhGhZVNhS5hgOs=";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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";
|
|
|
|
homepage = "https://vemel.github.io/mypy_boto3_builder/";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|