Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 46 lines 941 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, boto3 6, six 7, pyyaml 8, mock 9}: 10 11buildPythonPackage rec { 12 pname = "serverlessrepo"; 13 version = "0.1.8"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "533389d41a51450e50cc01405ab766550170149c08e1c85b3a1559b0fab4cb25"; 18 }; 19 20 propagatedBuildInputs = [ 21 six 22 boto3 23 pyyaml 24 ]; 25 26 checkInputs = [ pytest mock ]; 27 28 checkPhase = '' 29 pytest tests/unit 30 ''; 31 32 postPatch = '' 33 substituteInPlace setup.py --replace "pyyaml~=3.12" "pyyaml~=5.1" 34 ''; 35 36 meta = with lib; { 37 homepage = https://github.com/awslabs/aws-serverlessrepo-python; 38 description = "Helpers for working with the AWS Serverless Application Repository"; 39 longDescription = '' 40 A Python library with convenience helpers for working with the 41 AWS Serverless Application Repository. 42 ''; 43 license = lib.licenses.asl20; 44 maintainers = with maintainers; [ dhkl ]; 45 }; 46}