Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 34 lines 852 B view raw
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 useFetchCargoVendor = true; 20 cargoHash = "sha256-rWawf1YYeTWKPaZwua/f4BNo56z3mkCBU4jyZIFNqP4="; 21 22 nativeCheckInputs = [ python3 ]; 23 24 useNextest = true; 25 26 meta = with lib; { 27 description = "Implementation of the `py` command for Unix-based platforms"; 28 homepage = "https://github.com/brettcannon/python-launcher"; 29 changelog = "https://github.com/brettcannon/python-launcher/releases/tag/v${version}"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ figsoda ]; 32 mainProgram = "py"; 33 }; 34}