diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-01-09 10:58:31 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-01-23 01:09:30 +0100 |
commit | b4852980bd37ba95a737b660c5132d7c84de834a (patch) | |
tree | 918999b3423689f78f11e51db00c6a13318d25e0 /pkgs/development/python-modules/httpbin | |
parent | 46cf897eb152f9d82d8718b8fe987a07d9d727e8 (diff) | |
download | nixpkgs-b4852980bd37ba95a737b660c5132d7c84de834a.tar nixpkgs-b4852980bd37ba95a737b660c5132d7c84de834a.tar.gz nixpkgs-b4852980bd37ba95a737b660c5132d7c84de834a.tar.bz2 nixpkgs-b4852980bd37ba95a737b660c5132d7c84de834a.tar.lz nixpkgs-b4852980bd37ba95a737b660c5132d7c84de834a.tar.xz nixpkgs-b4852980bd37ba95a737b660c5132d7c84de834a.tar.zst nixpkgs-b4852980bd37ba95a737b660c5132d7c84de834a.zip |
python3Packages.httpbin: enable tests
Diffstat (limited to 'pkgs/development/python-modules/httpbin')
-rw-r--r-- | pkgs/development/python-modules/httpbin/default.nix | 48 |
1 files changed, 40 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/httpbin/default.nix b/pkgs/development/python-modules/httpbin/default.nix index ace9a7041e3..8359fcf0a09 100644 --- a/pkgs/development/python-modules/httpbin/default.nix +++ b/pkgs/development/python-modules/httpbin/default.nix @@ -1,33 +1,65 @@ { lib +, brotlipy , buildPythonPackage +, decorator , fetchPypi , flask , flask-limiter -, markupsafe -, decorator , itsdangerous +, markupsafe , raven , six -, brotlipy +, pytestCheckHook }: buildPythonPackage rec { pname = "httpbin"; version = "0.7.0"; + format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "1yldvf3585zcwj4vxvfm4yr9wwlz3pa2mx2pazqz8x8mr687gcyb"; + hash = "sha256-y7N3kMkVdfTxV1f0KtQdn3KesifV7b6J5OwXVIbbjfo="; }; - propagatedBuildInputs = [ brotlipy flask flask-limiter markupsafe decorator itsdangerous raven six ]; + propagatedBuildInputs = [ + brotlipy + flask + flask-limiter + markupsafe + decorator + itsdangerous + raven + six + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pytestFlagsArray = [ + "test_httpbin.py" + ]; + + 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" + ]; - # No tests - doCheck = false; + pythonImportsCheck = [ + "httpbin" + ]; meta = with lib; { + description = "HTTP Request and Response Service"; homepage = "https://github.com/kennethreitz/httpbin"; - description = "HTTP Request & Response Service"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; } |