1{ lib, rustPlatform, fetchFromGitHub, python3 }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "python-launcher";
5 version = "1.0.0";
6
7 src = fetchFromGitHub {
8 owner = "brettcannon";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1r2pmli4jsdjag9zsgd9q1qlj3hxxjj2bni6yybjh1a10fcqxzzv";
12 };
13
14 cargoSha256 = "sha256-2lgWybEPi6HEUMYuGDRWMjWoc94CrFHPP5IeKUjj0q4=";
15
16 nativeCheckInputs = [ python3 ];
17
18 useNextest = true;
19
20 meta = with lib; {
21 description = "An 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}