13 rustPlatform.buildRustPackage rec {
17 src = fetchFromGitHub {
20 rev = "refs/tags/${version}";
21 hash = "sha256-hPfMKp5FUbIKKKFfoS/pxseWmhqW8UOts7DOcRzgHWU=";
25 lockFile = ./Cargo.lock;
27 "dialoguer-0.10.4" = "sha256-WDqUKOu7Y0HElpPxf2T8EpzAY3mY8sSn9lf0V0jyAFc=";
28 "monotrail-utils-0.0.1" = "sha256-ydNdg6VI+Z5wXe2bEzRtavw0rsrcJkdsJ5DvXhbaDE4=";
33 OPENSSL_NO_VENDOR = 1;
36 nativeBuildInputs = [ installShellFiles pkg-config ];
41 ++ lib.optionals stdenv.isDarwin [
47 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
48 installShellCompletion --cmd rye \
49 --bash <($out/bin/rye self completion -s bash) \
50 --fish <($out/bin/rye self completion -s fish) \
51 --zsh <($out/bin/rye self completion -s zsh)
55 "--skip=utils::test_is_inside_git_work_tree"
57 # The following require internet access to fetch a python binary
58 "--skip=test_add_and_sync_no_auto_sync"
59 "--skip=test_add_autosync"
60 "--skip=test_add_explicit_version_or_url"
61 "--skip=test_add_flask"
62 "--skip=test_add_from_find_links"
63 "--skip=test_autosync_remember"
64 "--skip=test_basic_tool_behavior"
65 "--skip=test_config_empty"
66 "--skip=test_config_get_set_multiple"
67 "--skip=test_config_incompatible_format_and_show_path"
68 "--skip=test_config_save_missing_folder"
69 "--skip=test_config_show_path"
71 "--skip=test_empty_sync"
73 "--skip=test_init_default"
74 "--skip=test_init_lib"
75 "--skip=test_init_script"
76 "--skip=test_lint_and_format"
77 "--skip=test_publish_outside_project"
82 description = "A tool to easily manage python dependencies and environments";
83 homepage = "https://github.com/mitsuhiko/rye";
84 changelog = "https://github.com/mitsuhiko/rye/releases/tag/${version}";
85 license = licenses.mit;
86 maintainers = with maintainers; [ GaetanLepage ];