commit
bc2b3ea358
@ -1,17 +1,35 @@
|
|||||||
{ stdenv, fetchurl, python3Packages }:
|
{ stdenv, fetchFromGitHub, python3Packages, docutils, }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "httpie";
|
pname = "httpie";
|
||||||
version = "1.0.3";
|
version = "1.0.3";
|
||||||
|
|
||||||
src = python3Packages.fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "jakubroztocil";
|
||||||
sha256 = "103fcigpxf4nqmrdqjnyz7d9n4n16906slwmmqqc0gkxv8hnw6vd";
|
repo = "httpie";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0y30sp0x3nmgzi4dqw1rc3705hnn36ij0zlyyx7g6fqdq8bd8p5q";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ pygments requests setuptools ];
|
propagatedBuildInputs = with python3Packages; [ pygments requests setuptools ];
|
||||||
|
dontUseSetuptoolsCheck = true;
|
||||||
|
|
||||||
doCheck = false;
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A command line HTTP client whose goal is to make CLI human-friendly";
|
description = "A command line HTTP client whose goal is to make CLI human-friendly";
|
||||||
|
Loading…
Reference in New Issue
Block a user