2018-11-29 12:20:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-26 07:44:26 +00:00
|
|
|
, pythonOlder
|
2018-11-29 12:20:46 +00:00
|
|
|
, attrs
|
|
|
|
, botocore
|
|
|
|
, click
|
|
|
|
, enum-compat
|
2020-08-26 06:22:12 +00:00
|
|
|
, hypothesis
|
2021-05-07 17:05:38 +00:00
|
|
|
, inquirer
|
2018-11-29 12:20:46 +00:00
|
|
|
, jmespath
|
2020-08-26 06:22:12 +00:00
|
|
|
, mock
|
|
|
|
, mypy-extensions
|
2018-11-29 12:20:46 +00:00
|
|
|
, pip
|
2020-08-26 06:22:12 +00:00
|
|
|
, pytest
|
|
|
|
, pyyaml
|
2018-11-29 12:20:46 +00:00
|
|
|
, setuptools
|
|
|
|
, six
|
2021-03-25 07:23:40 +00:00
|
|
|
, typing ? null
|
2018-11-29 12:20:46 +00:00
|
|
|
, watchdog
|
2020-08-26 06:22:12 +00:00
|
|
|
, wheel
|
2018-11-29 12:20:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chalice";
|
2021-03-24 09:28:10 +00:00
|
|
|
version = "1.22.3";
|
2018-11-29 12:20:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:10 +00:00
|
|
|
sha256 = "5a84a73c4a8d8b22bb64e06ff99060d7f222097db4237e58749dcad5165f082d";
|
2018-11-29 12:20:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ watchdog pytest hypothesis mock ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
botocore
|
|
|
|
click
|
|
|
|
enum-compat
|
2021-05-07 17:05:38 +00:00
|
|
|
inquirer
|
2018-11-29 12:20:46 +00:00
|
|
|
jmespath
|
2020-08-26 06:22:12 +00:00
|
|
|
mypy-extensions
|
2018-11-29 12:20:46 +00:00
|
|
|
pip
|
2020-08-26 06:22:12 +00:00
|
|
|
pyyaml
|
2018-11-29 12:20:46 +00:00
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
wheel
|
2020-08-26 07:44:26 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.5") [
|
2018-11-29 12:20:46 +00:00
|
|
|
typing
|
|
|
|
];
|
|
|
|
|
|
|
|
# conftest.py not included with pypi release
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-02-22 18:06:41 +00:00
|
|
|
sed -i setup.py -e "/pip>=/c\'pip',"
|
2018-11-29 12:20:46 +00:00
|
|
|
substituteInPlace setup.py \
|
2021-02-22 07:41:19 +00:00
|
|
|
--replace 'typing==3.6.4' 'typing'
|
2018-11-29 12:20:46 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Serverless Microframework for AWS";
|
2020-04-02 00:51:29 +00:00
|
|
|
homepage = "https://github.com/aws/chalice";
|
2018-11-29 12:20:46 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|