Merge pull request #169302 from kfollesdal/httpie-ntlm
commit
5eb5ae4261
@ -0,0 +1,31 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, httpie |
||||
, requests_ntlm |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "httpie-ntlm"; |
||||
version = "1.0.2"; |
||||
format = "setuptools"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "b1f757180c0bd60741ea16cf91fc53d47df402a5c287c4a61a14b335ea0552b3"; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ httpie requests_ntlm ]; |
||||
|
||||
# Package have no tests |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ "httpie_ntlm" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "NTLM auth plugin for HTTPie"; |
||||
homepage = "https://github.com/httpie/httpie-ntlm"; |
||||
license = licenses.bsdOriginal; |
||||
maintainers = with maintainers; [ kfollesdal ]; |
||||
}; |
||||
} |
@ -1,22 +0,0 @@ |
||||
diff --git a/tests/test_docs.py b/tests/test_docs.py
|
||||
index 340e64d..a6b4dc9 100644
|
||||
--- a/tests/test_docs.py
|
||||
+++ b/tests/test_docs.py
|
||||
@@ -42,15 +42,10 @@ assert filenames
|
||||
# HACK: hardcoded paths, venv should be irrelevant, etc.
|
||||
# TODO: simplify by using the Python API instead of a subprocess
|
||||
# then we wont’t need the paths.
|
||||
-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 VENV_RST2PSEUDOXML.exists(),
|
||||
- reason='docutils not installed',
|
||||
-)
|
||||
@pytest.mark.parametrize('filename', filenames)
|
||||
def test_rst_file_syntax(filename):
|
||||
p = subprocess.Popen(
|
Loading…
Reference in new issue