commit
a98371adb3
@ -2,22 +2,18 @@
|
|||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "httpie";
|
pname = "httpie";
|
||||||
version = "1.0.3";
|
version = "2.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jakubroztocil";
|
owner = "jakubroztocil";
|
||||||
repo = "httpie";
|
repo = "httpie";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0y30sp0x3nmgzi4dqw1rc3705hnn36ij0zlyyx7g6fqdq8bd8p5q";
|
sha256 = "0d0rsn5i973l9y0ws3xmnzaw4jwxdlryyjbasnlddph5mvkf7dq0";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ pygments requests setuptools ];
|
propagatedBuildInputs = with python3Packages; [ pygments requests setuptools ];
|
||||||
dontUseSetuptoolsCheck = true;
|
dontUseSetuptoolsCheck = true;
|
||||||
|
patches = [ ./strip-venv.patch ];
|
||||||
disabledTests = [
|
|
||||||
"test_current_version"
|
|
||||||
"test_error"
|
|
||||||
];
|
|
||||||
|
|
||||||
checkInputs = with python3Packages; [
|
checkInputs = with python3Packages; [
|
||||||
mock
|
mock
|
||||||
|
19
pkgs/tools/networking/httpie/strip-venv.patch
Normal file
19
pkgs/tools/networking/httpie/strip-venv.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/tests/test_docs.py b/tests/test_docs.py
|
||||||
|
index 7a41822..720ecf6 100644
|
||||||
|
--- a/tests/test_docs.py
|
||||||
|
+++ b/tests/test_docs.py
|
||||||
|
@@ -41,12 +41,10 @@ assert filenames
|
||||||
|
|
||||||
|
# HACK: hardcoded paths, venv should be irrelevant, etc.
|
||||||
|
# TODO: replaces the process with Python code
|
||||||
|
-VENV_BIN = Path(__file__).parent.parent / 'venv/bin'
|
||||||
|
-VENV_PYTHON = VENV_BIN / 'python'
|
||||||
|
-VENV_RST2PSEUDOXML = VENV_BIN / 'rst2pseudoxml.py'
|
||||||
|
+VENV_PYTHON = 'python'
|
||||||
|
+VENV_RST2PSEUDOXML = 'rst2pseudoxml.py'
|
||||||
|
|
||||||
|
|
||||||
|
-@pytest.mark.skipif(not os.path.exists(VENV_RST2PSEUDOXML), reason='docutils not installed')
|
||||||
|
@pytest.mark.parametrize('filename', filenames)
|
||||||
|
def test_rst_file_syntax(filename):
|
||||||
|
p = subprocess.Popen(
|
Loading…
Reference in New Issue
Block a user