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