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