Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 python3, 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "python-launcher"; 10 version = "1.0.1"; 11 12 src = fetchFromGitHub { 13 owner = "brettcannon"; 14 repo = "python-launcher"; 15 rev = "v${version}"; 16 sha256 = "sha256-wRKTBvLLo0Vvvh1GtF9hOnUHNpOeX950y1U+8JYBGoE="; 17 }; 18 19 cargoHash = "sha256-rWawf1YYeTWKPaZwua/f4BNo56z3mkCBU4jyZIFNqP4="; 20 21 nativeCheckInputs = [ python3 ]; 22 23 useNextest = true; 24 25 meta = { 26 description = "Implementation of the `py` command for Unix-based platforms"; 27 homepage = "https://github.com/brettcannon/python-launcher"; 28 changelog = "https://github.com/brettcannon/python-launcher/releases/tag/v${version}"; 29 license = lib.licenses.mit; 30 maintainers = with lib.maintainers; [ figsoda ]; 31 mainProgram = "py"; 32 }; 33}