2022-11-28 16:47:20 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, python3 }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "python-launcher";
|
2024-07-02 00:21:37 +00:00
|
|
|
version = "1.0.1";
|
2022-11-28 16:47:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brettcannon";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-07-02 00:21:37 +00:00
|
|
|
sha256 = "sha256-wRKTBvLLo0Vvvh1GtF9hOnUHNpOeX950y1U+8JYBGoE=";
|
2022-11-28 16:47:20 +00:00
|
|
|
};
|
|
|
|
|
2024-07-02 00:21:37 +00:00
|
|
|
cargoHash = "sha256-+FtfL5jAGJrpnZaJDnDMvWC0D3Af0L466v9nqJkb+uA=";
|
2022-11-28 16:47:20 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ python3 ];
|
2022-11-28 16:47:20 +00:00
|
|
|
|
2022-11-28 22:00:44 +00:00
|
|
|
useNextest = true;
|
2022-11-28 16:47:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-07 07:46:46 +00:00
|
|
|
description = "Implementation of the `py` command for Unix-based platforms";
|
2022-11-28 16:47:20 +00:00
|
|
|
homepage = "https://github.com/brettcannon/python-launcher";
|
|
|
|
changelog = "https://github.com/brettcannon/python-launcher/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
mainProgram = "py";
|
|
|
|
};
|
|
|
|
}
|