httpie: Make available as python library

main
Kristoffer Føllesdal 2 years ago
parent bfeb72c912
commit 6281fca161
  1. 27
      pkgs/development/python-modules/httpie/default.nix
  2. 2
      pkgs/top-level/all-packages.nix
  3. 2
      pkgs/top-level/python-packages.nix

@ -1,11 +1,29 @@
{ lib { lib
, buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, installShellFiles , installShellFiles
, python3
, pandoc , 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"; pname = "httpie";
version = "3.2.1"; version = "3.2.1";
format = "setuptools"; format = "setuptools";
@ -22,7 +40,7 @@ python3.pkgs.buildPythonApplication rec {
pandoc pandoc
]; ];
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = [
charset-normalizer charset-normalizer
defusedxml defusedxml
multidict multidict
@ -34,8 +52,7 @@ python3.pkgs.buildPythonApplication rec {
pysocks pysocks
]; ];
checkInputs = with python3.pkgs; [ checkInputs = [
pytest
pytest-httpbin pytest-httpbin
pytest-lazy-fixture pytest-lazy-fixture
pytest-mock pytest-mock

@ -6966,7 +6966,7 @@ with pkgs;
httpdump = callPackage ../tools/security/httpdump { }; httpdump = callPackage ../tools/security/httpdump { };
httpie = callPackage ../tools/networking/httpie { }; httpie = with python3Packages; toPythonApplication httpie;
httping = callPackage ../tools/networking/httping {}; httping = callPackage ../tools/networking/httping {};

@ -3935,6 +3935,8 @@ in {
httpcore = callPackage ../development/python-modules/httpcore { }; httpcore = callPackage ../development/python-modules/httpcore { };
httpie = callPackage ../development/python-modules/httpie { };
http-ece = callPackage ../development/python-modules/http-ece { }; http-ece = callPackage ../development/python-modules/http-ece { };
httplib2 = callPackage ../development/python-modules/httplib2 { }; httplib2 = callPackage ../development/python-modules/httplib2 { };

Loading…
Cancel
Save