2019-09-23 15:56:01 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages, docutils, }:
|
2012-12-28 22:28:34 +00:00
|
|
|
|
2019-09-20 09:04:18 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-08-30 04:02:24 +01:00
|
|
|
pname = "httpie";
|
2019-08-30 04:05:26 +01:00
|
|
|
version = "1.0.3";
|
2012-12-28 22:28:34 +00:00
|
|
|
|
2019-09-23 15:56:01 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jakubroztocil";
|
|
|
|
repo = "httpie";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0y30sp0x3nmgzi4dqw1rc3705hnn36ij0zlyyx7g6fqdq8bd8p5q";
|
2012-12-28 22:28:34 +00:00
|
|
|
};
|
|
|
|
|
2019-09-20 09:04:18 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [ pygments requests setuptools ];
|
2019-09-23 15:56:01 +01:00
|
|
|
dontUseSetuptoolsCheck = true;
|
2013-02-16 18:08:43 +00:00
|
|
|
|
2019-09-23 15:56:01 +01:00
|
|
|
disabledTests = [
|
|
|
|
"test_current_version"
|
|
|
|
"test_error"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
mock
|
|
|
|
pytest
|
|
|
|
pytest-httpbin
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# the tests call rst2pseudoxml.py from docutils
|
|
|
|
preCheck = ''
|
|
|
|
export PATH=${docutils}/bin:$PATH
|
|
|
|
'';
|
2012-12-28 22:28:34 +00:00
|
|
|
|
|
|
|
meta = {
|
2012-12-28 23:09:01 +00:00
|
|
|
description = "A command line HTTP client whose goal is to make CLI human-friendly";
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://httpie.org/;
|
2014-05-08 21:34:19 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2016-12-11 12:17:49 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ antono relrod schneefux ];
|
2012-12-28 22:28:34 +00:00
|
|
|
};
|
|
|
|
}
|