2022-12-02 08:20:57 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, python3 }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "python-launcher";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.0.1";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brettcannon";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "sha256-wRKTBvLLo0Vvvh1GtF9hOnUHNpOeX950y1U+8JYBGoE=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cargoHash = "sha256-+FtfL5jAGJrpnZaJDnDMvWC0D3Af0L466v9nqJkb+uA=";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ python3 ];
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
useNextest = true;
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Implementation of the `py` command for Unix-based platforms";
|
2022-12-02 08:20:57 +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";
|
|
|
|
};
|
|
|
|
}
|