2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, attrs
|
|
|
|
, botocore
|
|
|
|
, click
|
|
|
|
, enum-compat
|
|
|
|
, jmespath
|
|
|
|
, pip
|
|
|
|
, setuptools
|
|
|
|
, six
|
|
|
|
, typing
|
|
|
|
, wheel
|
|
|
|
, watchdog
|
|
|
|
, pytest
|
|
|
|
, hypothesis
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chalice";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "1.14.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "457e71fd84951574ccbe72d1389d9c89aaf5e69a552b01d1f1585faa63459c26";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ watchdog pytest hypothesis mock ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
botocore
|
|
|
|
click
|
|
|
|
enum-compat
|
|
|
|
jmespath
|
|
|
|
pip
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
wheel
|
|
|
|
typing
|
|
|
|
];
|
|
|
|
|
|
|
|
# conftest.py not included with pypi release
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i setup.py -e "/pip>=/c\'pip',"
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace 'pip>=9,<=19.4' 'pip' \
|
|
|
|
--replace 'typing==3.6.4' 'typing' \
|
|
|
|
--replace 'attrs==17.4.0' 'attrs' \
|
|
|
|
--replace 'click>=6.6,<7.0' 'click'
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Serverless Microframework for AWS";
|
|
|
|
homepage = "https://github.com/aws/chalice";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|