xonsh: add pip to test dependency and other changes
This commit is contained in:
@@ -9,16 +9,17 @@
|
|||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "xonsh";
|
pname = "xonsh";
|
||||||
version = "0.14.0";
|
version = "0.14.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
# fetch from github because the pypi package ships incomplete tests
|
# fetch from github because the pypi package ships incomplete tests
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "xonsh";
|
owner = "xonsh";
|
||||||
repo = "xonsh";
|
repo = "xonsh";
|
||||||
rev = "refs/tags/${version}";
|
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 = ''
|
postPatch = ''
|
||||||
sed -ie "s|/bin/ls|${coreutils}/bin/ls|" tests/test_execer.py
|
sed -ie "s|/bin/ls|${coreutils}/bin/ls|" tests/test_execer.py
|
||||||
@@ -31,6 +32,11 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
patchShebangs .
|
patchShebangs .
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
|
setuptools
|
||||||
|
wheel
|
||||||
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# fails on sandbox
|
# fails on sandbox
|
||||||
"test_colorize_file"
|
"test_colorize_file"
|
||||||
@@ -63,7 +69,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
nativeCheckInputs = [ glibcLocales git ] ++
|
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 ];
|
propagatedBuildInputs = with python3.pkgs; [ ply prompt-toolkit pygments ];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user