2019-04-06 13:50:49 +02:00
|
|
|
{ lib
|
2019-05-07 02:06:03 +02:00
|
|
|
, python
|
2019-04-06 13:50:49 +02:00
|
|
|
}:
|
|
|
|
|
2019-05-07 02:06:03 +02:00
|
|
|
let
|
|
|
|
py = python.override {
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "3.12";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
with py.pkgs;
|
|
|
|
|
2019-04-06 13:50:49 +02:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "serverlessrepo";
|
|
|
|
version = "0.1.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "533389d41a51450e50cc01405ab766550170149c08e1c85b3a1559b0fab4cb25";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
boto3
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/awslabs/aws-serverlessrepo-python;
|
|
|
|
description = "Helpers for working with the AWS Serverless Application Repository";
|
|
|
|
longDescription = ''
|
|
|
|
A Python library with convenience helpers for working with the
|
|
|
|
AWS Serverless Application Repository.
|
|
|
|
'';
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dhkl ];
|
|
|
|
};
|
|
|
|
}
|