diff options
author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-08-22 11:01:06 -0700 |
---|---|---|
committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-08-22 11:01:06 -0700 |
commit | 728c42fb580af7f1f66f52b2866e56eb461b55a9 (patch) | |
tree | 00c431adecf5520b1ef1e66314b427f726325f0a | |
parent | f967c5c16c6ddf8ea01e76bae38e233fe23d2efb (diff) | |
download | nixpkgs-728c42fb580af7f1f66f52b2866e56eb461b55a9.tar nixpkgs-728c42fb580af7f1f66f52b2866e56eb461b55a9.tar.gz nixpkgs-728c42fb580af7f1f66f52b2866e56eb461b55a9.tar.bz2 nixpkgs-728c42fb580af7f1f66f52b2866e56eb461b55a9.tar.lz nixpkgs-728c42fb580af7f1f66f52b2866e56eb461b55a9.tar.xz nixpkgs-728c42fb580af7f1f66f52b2866e56eb461b55a9.tar.zst nixpkgs-728c42fb580af7f1f66f52b2866e56eb461b55a9.zip |
xonsh: add pip to test dependency and other changes
-rw-r--r-- | pkgs/shells/xonsh/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/shells/xonsh/default.nix b/pkgs/shells/xonsh/default.nix index 00b5259ae7e..67896d83632 100644 --- a/pkgs/shells/xonsh/default.nix +++ b/pkgs/shells/xonsh/default.nix @@ -9,16 +9,17 @@ python3.pkgs.buildPythonApplication rec { pname = "xonsh"; version = "0.14.0"; + format = "pyproject"; # fetch from github because the pypi package ships incomplete tests src = fetchFromGitHub { owner = "xonsh"; repo = "xonsh"; rev = "refs/tags/${version}"; - sha256 = "sha256-ZrPKKa/vl06QAjGr16ZzKF/DAByFHr6ze2WVOCa+wf8="; + hash = "sha256-ZrPKKa/vl06QAjGr16ZzKF/DAByFHr6ze2WVOCa+wf8="; }; - LC_ALL = "en_US.UTF-8"; + env.LC_ALL = "en_US.UTF-8"; postPatch = '' sed -ie "s|/bin/ls|${coreutils}/bin/ls|" tests/test_execer.py @@ -31,6 +32,11 @@ python3.pkgs.buildPythonApplication rec { patchShebangs . ''; + nativeBuildInputs = with python3.pkgs; [ + setuptools + wheel + ]; + disabledTests = [ # fails on sandbox "test_colorize_file" @@ -63,7 +69,7 @@ python3.pkgs.buildPythonApplication rec { ''; nativeCheckInputs = [ glibcLocales git ] ++ - (with python3.pkgs; [ pyte pytestCheckHook pytest-mock pytest-subprocess ]); + (with python3.pkgs; [ pip pyte pytestCheckHook pytest-mock pytest-subprocess ]); propagatedBuildInputs = with python3.pkgs; [ ply prompt-toolkit pygments ]; |