mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 21:04:30 +00:00
httpie: Make available as python library
This commit is contained in:
parent
bfeb72c912
commit
6281fca161
@ -1,11 +1,29 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, python3
|
||||
, pandoc
|
||||
, pythonOlder
|
||||
# BuildInputs
|
||||
, charset-normalizer
|
||||
, defusedxml
|
||||
, multidict
|
||||
, pygments
|
||||
, requests
|
||||
, requests-toolbelt
|
||||
, setuptools
|
||||
, rich
|
||||
, pysocks
|
||||
# CheckInputs
|
||||
, pytest-httpbin
|
||||
, pytest-lazy-fixture
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, responses
|
||||
, werkzeug
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
buildPythonPackage rec {
|
||||
pname = "httpie";
|
||||
version = "3.2.1";
|
||||
format = "setuptools";
|
||||
@ -22,7 +40,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
pandoc
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
propagatedBuildInputs = [
|
||||
charset-normalizer
|
||||
defusedxml
|
||||
multidict
|
||||
@ -34,8 +52,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
pysocks
|
||||
];
|
||||
|
||||
checkInputs = with python3.pkgs; [
|
||||
pytest
|
||||
checkInputs = [
|
||||
pytest-httpbin
|
||||
pytest-lazy-fixture
|
||||
pytest-mock
|
@ -6966,7 +6966,7 @@ with pkgs;
|
||||
|
||||
httpdump = callPackage ../tools/security/httpdump { };
|
||||
|
||||
httpie = callPackage ../tools/networking/httpie { };
|
||||
httpie = with python3Packages; toPythonApplication httpie;
|
||||
|
||||
httping = callPackage ../tools/networking/httping {};
|
||||
|
||||
|
@ -3935,6 +3935,8 @@ in {
|
||||
|
||||
httpcore = callPackage ../development/python-modules/httpcore { };
|
||||
|
||||
httpie = callPackage ../development/python-modules/httpie { };
|
||||
|
||||
http-ece = callPackage ../development/python-modules/http-ece { };
|
||||
|
||||
httplib2 = callPackage ../development/python-modules/httplib2 { };
|
||||
|
Loading…
Reference in New Issue
Block a user