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
|
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-02-10 20:34:41 +00:00
|
|
|
version = "6.3.2";
|
2021-09-26 12:46:18 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vemel";
|
|
|
|
repo = "mypy_boto3_builder";
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "1krsh8pmxigpzz21gvsy7qnpnwfkyyjbz92bqp9iflf7kklfhb79";
|
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
|
|
|
|
pyparsing
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Should be fixed with 5.x
|
|
|
|
"test_get_types"
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
pythonImportsCheck = [ "mypy_boto3_builder" ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|