Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 46 lines 944 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.10"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "671f48038123f121437b717ed51f253a55775590f00fbab6fbc6a01f8d05c017"; 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}