diff options
| author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-11-29 07:20:46 -0500 |
|---|---|---|
| committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-12-03 16:50:41 +0100 |
| commit | 147473511e59d8a2e320d7b62b7abdeb094ca2b8 (patch) | |
| tree | 65adb57f70a4fafa46f521dfc6956668d8a2a2f8 /pkgs/development/python-modules | |
| parent | pythonPackages.livereload: 2.5.1 -> 2.6.0 (diff) | |
| download | nixpkgs-147473511e59d8a2e320d7b62b7abdeb094ca2b8.tar.gz | |
pythonPackages.chalice: init at 1.6.1
Diffstat (limited to 'pkgs/development/python-modules')
| -rw-r--r-- | pkgs/development/python-modules/chalice/default.nix | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/chalice/default.nix b/pkgs/development/python-modules/chalice/default.nix new file mode 100644 index 000000000000..70e9744058c1 --- /dev/null +++ b/pkgs/development/python-modules/chalice/default.nix @@ -0,0 +1,65 @@ +{ lib +, buildPythonPackage +, fetchPypi +, attrs +, botocore +, click +, enum-compat +, jmespath +, pip +, setuptools +, six +, typing +, wheel +, pythonOlder +, watchdog +, pytest +, hypothesis +, mock +}: + +buildPythonPackage rec { + pname = "chalice"; + version = "1.6.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "783ba3c603b944ba32f0ee39f272dc192f2097cfc520692f4dcb718bebdf940e"; + }; + + 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 = '' + substituteInPlace setup.py \ + --replace 'pip>=9,<=18' '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 ]; + }; +} |
