Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 python3, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "imdshift"; 9 version = "1.0.0"; 10 format = "pyproject"; 11 12 src = fetchFromGitHub { 13 owner = "ayushpriya10"; 14 repo = "IMDShift"; 15 tag = "v${version}"; 16 hash = "sha256-Uoa0uNOhCkT622Yy8GEg8jz9k5zmtXwGmvdb3MVTLX8="; 17 }; 18 19 build-system = with python3.pkgs; [ 20 setuptools 21 ]; 22 23 dependencies = with python3.pkgs; [ 24 boto3 25 click 26 prettytable 27 tqdm 28 ]; 29 30 # Project has no tests 31 doCheck = false; 32 33 pythonImportsCheck = [ 34 "IMDShift" 35 ]; 36 37 meta = { 38 description = "Tool to migrate workloads to IMDSv2"; 39 mainProgram = "imdshift"; 40 homepage = "https://github.com/ayushpriya10/IMDShift"; 41 changelog = "https://github.com/ayushpriya10/IMDShift/releases/tag/v${version}"; 42 license = lib.licenses.gpl3Only; 43 maintainers = with lib.maintainers; [ fab ]; 44 }; 45}