61 lines
1 KiB
Nix
61 lines
1 KiB
Nix
{ lib
|
|
, black
|
|
, boto3
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isort
|
|
, jinja2
|
|
, md-toc
|
|
, mdformat
|
|
, poetry-core
|
|
, pyparsing
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mypy-boto3-builder";
|
|
version = "5.5.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vemel";
|
|
repo = "mypy_boto3_builder";
|
|
rev = version;
|
|
sha256 = "sha256-cFe8d6w28VFTNyj/ABWHkFQDfnM4aTrNZ+WUw5g8H5I=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
black
|
|
boto3
|
|
isort
|
|
jinja2
|
|
md-toc
|
|
mdformat
|
|
pyparsing
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Should be fixed with 5.x
|
|
"test_get_types"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|