nixpkgs/pkgs/development/python-modules/httpbin/default.nix
2017-12-31 10:55:06 +01:00

32 lines
615 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, flask
, markupsafe
, decorator
, itsdangerous
, six
}:
buildPythonPackage rec {
pname = "httpbin";
version = "0.6.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0afa0486a76305cac441b5cc80d5d4ccd82b20875da7c5119ecfe616cefef45f";
};
propagatedBuildInputs = [ flask markupsafe decorator itsdangerous six ];
# No tests
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/kennethreitz/httpbin;
description = "HTTP Request & Response Service";
license = licenses.mit;
};
}