Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 87 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ lib, buildPythonPackage, fetchPypi, pythonRelaxDepsHook
# build-system, setuptools
# dependencies, brotlicffi, decorator, flasgger, flask, greenlet, six, werkzeug
# optional-dependencies, gunicorn, gevent
# tests, pytestCheckHook}:
buildPythonPackage rec { pname = "httpbin"; version = "0.10.1"; format = "pyproject";
src = fetchPypi { inherit pname version; hash = "sha256-e4WWvrDnWntlPDnR888mPW1cR20p4d9ve7K3C/nwaj0="; };
nativeBuildInputs = [ setuptools pythonRelaxDepsHook ];
pythonRelaxDeps = [ "greenlet" ];
propagatedBuildInputs = [ brotlicffi decorator flask flasgger greenlet six werkzeug ];
passthru.optional-dependencies = { mainapp = [ gunicorn gevent ]; };
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [ # Tests seems to be outdated "test_anything" "test_get" "test_redirect_n_equals_to_1" "test_redirect_n_higher_than_1" "test_redirect_to_post" "test_relative_redirect_n_equals_to_1" "test_relative_redirect_n_higher_than_1" ];
pythonImportsCheck = [ "httpbin" ];
meta = with lib; { description = "HTTP Request and Response Service"; homepage = "https://github.com/psf/httpbin"; license = licenses.mit; maintainers = with maintainers; [ ]; };}