1{ lib
2, buildPythonPackage
3, fetchPypi
4, attrs
5, botocore
6, click
7, enum-compat
8, jmespath
9, pip
10, setuptools
11, six
12, typing
13, wheel
14, pythonOlder
15, watchdog
16, pytest
17, hypothesis
18, mock
19}:
20
21buildPythonPackage rec {
22 pname = "chalice";
23 version = "1.7.0";
24
25 src = fetchPypi {
26 inherit pname version;
27 sha256 = "98a1237bf77f18761d8f964cb3c3b794e2d377a261b5e1640268608ec94336fa";
28 };
29
30 checkInputs = [ watchdog pytest hypothesis mock ];
31 propagatedBuildInputs = [
32 attrs
33 botocore
34 click
35 enum-compat
36 jmespath
37 pip
38 setuptools
39 six
40 wheel
41 typing
42 ];
43
44 # conftest.py not included with pypi release
45 doCheck = false;
46
47 postPatch = ''
48 substituteInPlace setup.py \
49 --replace 'pip>=9,<=18.1' 'pip' \
50 --replace 'typing==3.6.4' 'typing' \
51 --replace 'attrs==17.4.0' 'attrs' \
52 --replace 'click>=6.6,<7.0' 'click'
53 '';
54
55 checkPhase = ''
56 pytest tests
57 '';
58
59 meta = with lib; {
60 description = "Python Serverless Microframework for AWS";
61 homepage = https://github.com/aws/chalice;
62 license = licenses.asl20;
63 maintainers = [ maintainers.costrouc ];
64 };
65}