Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, requests 5, stups-cli-support 6, stups-zign 7, pytest 8, pytest-cov 9, hypothesis 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "stups-pierone"; 15 version = "1.1.51"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "zalando-stups"; 22 repo = "pierone-cli"; 23 rev = version; 24 hash = "sha256-OypGYHfiFUfcUndylM2N2WfPnfXXJ4gvWypUbltYAYE="; 25 }; 26 27 propagatedBuildInputs = [ 28 requests 29 stups-cli-support 30 stups-zign 31 ]; 32 33 preCheck = '' 34 export HOME=$TEMPDIR 35 ''; 36 37 nativeCheckInputs = [ 38 pytest 39 pytest-cov 40 hypothesis 41 ]; 42 43 pythonImportsCheck = [ 44 "pierone" 45 ]; 46 47 meta = with lib; { 48 description = "Convenient command line client for STUPS' Pier One Docker registry"; 49 homepage = "https://github.com/zalando-stups/pierone-cli"; 50 license = licenses.asl20; 51 maintainers = with maintainers; [ mschuwalow ]; 52 }; 53}