nixpkgs/pkgs/tools/networking/httpie/default.nix

37 lines
942 B
Nix
Raw Normal View History

2019-09-23 07:56:01 -07:00
{ stdenv, fetchFromGitHub, python3Packages, docutils, }:
python3Packages.buildPythonApplication rec {
2019-08-29 20:02:24 -07:00
pname = "httpie";
2020-01-14 21:07:23 -08:00
version = "2.0.0";
2019-09-23 07:56:01 -07:00
src = fetchFromGitHub {
owner = "jakubroztocil";
repo = "httpie";
rev = version;
2020-01-14 21:07:23 -08:00
sha256 = "0d0rsn5i973l9y0ws3xmnzaw4jwxdlryyjbasnlddph5mvkf7dq0";
};
propagatedBuildInputs = with python3Packages; [ pygments requests setuptools ];
2019-09-23 07:56:01 -07:00
dontUseSetuptoolsCheck = true;
2020-01-14 21:07:23 -08:00
patches = [ ./strip-venv.patch ];
2019-09-23 07:56:01 -07:00
checkInputs = with python3Packages; [
mock
pytest
pytest-httpbin
pytestCheckHook
];
# the tests call rst2pseudoxml.py from docutils
preCheck = ''
export PATH=${docutils}/bin:$PATH
'';
meta = {
2012-12-28 15:09:01 -08:00
description = "A command line HTTP client whose goal is to make CLI human-friendly";
homepage = https://httpie.org/;
license = stdenv.lib.licenses.bsd3;
2016-12-11 04:17:49 -08:00
maintainers = with stdenv.lib.maintainers; [ antono relrod schneefux ];
};
}