nixpkgs/pkgs/tools/networking/httpie/default.nix
Maximilian Bosch a7f002ac41
httpie: use python3 by default
This package is intended to be used as application and supports
python3[1] (and is about to deprecated python2.7 support[2]),
so there's no reason to not use it in 2019.

[1] https://github.com/jakubroztocil/httpie/tree/1.0.3#python-version
[2] b3d2c1876e
2019-09-20 10:04:18 +02:00

23 lines
627 B
Nix

{ stdenv, fetchurl, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "httpie";
version = "1.0.3";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "103fcigpxf4nqmrdqjnyz7d9n4n16906slwmmqqc0gkxv8hnw6vd";
};
propagatedBuildInputs = with python3Packages; [ pygments requests setuptools ];
doCheck = false;
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 ];
};
}