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
, 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…
Cancel
Save