blob: 38fdab358c903ec28e39a8b6adee907529c61287 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ stdenv, fetchFromGitHub, python3Packages, docutils, }:
python3Packages.buildPythonApplication rec {
pname = "httpie";
version = "2.0.0";
src = fetchFromGitHub {
owner = "jakubroztocil";
repo = "httpie";
rev = version;
sha256 = "0d0rsn5i973l9y0ws3xmnzaw4jwxdlryyjbasnlddph5mvkf7dq0";
};
propagatedBuildInputs = with python3Packages; [ pygments requests setuptools ];
dontUseSetuptoolsCheck = true;
patches = [ ./strip-venv.patch ];
checkInputs = with python3Packages; [
mock
pytest
pytest-httpbin
pytestCheckHook
];
# the tests call rst2pseudoxml.py from docutils
preCheck = ''
export PATH=${docutils}/bin:$PATH
'';
meta = {
description = "A command line HTTP client whose goal is to make CLI human-friendly";
homepage = https://httpie.org/;
license = stdenv.lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ antono relrod schneefux ];
};
}
|