pythonPackages.chalice: init at 1.6.1
This commit is contained in:
parent
4149c51ed1
commit
147473511e
65
pkgs/development/python-modules/chalice/default.nix
Normal file
65
pkgs/development/python-modules/chalice/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -288,6 +288,8 @@ in {
|
||||
|
||||
cdecimal = callPackage ../development/python-modules/cdecimal { };
|
||||
|
||||
chalice = callPackage ../development/python-modules/chalice { };
|
||||
|
||||
clustershell = callPackage ../development/python-modules/clustershell { };
|
||||
|
||||
cozy = callPackage ../development/python-modules/cozy { };
|
||||
|
Loading…
Reference in New Issue
Block a user