Something went wrong. Try again.
lol
Something went wrong. Try again.
2.1 kB · 94 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495{ lib, stdenv, buildPythonPackage, fetchPypi, jaraco-functools, jaraco-text, more-itertools, portend, pypytools, pytest-mock, pytestCheckHook, requests, requests-toolbelt, requests-unixsocket, setuptools, setuptools-scm, six,}:
buildPythonPackage rec { pname = "cheroot"; version = "11.1.2"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-v7cMSWY/Y7BEDytU28aw0WUOVt/k4mQfWbLG9ye0Sso="; };
nativeBuildInputs = [ setuptools setuptools-scm ];
dependencies = [ jaraco-functools more-itertools six ];
nativeCheckInputs = [ jaraco-text portend pypytools pytest-mock pytestCheckHook requests requests-toolbelt requests-unixsocket ];
# Disable doctest plugin because times out # Disable xdist (-n arg) because it's incompatible with testmon # Deselect test_bind_addr_unix on darwin because times out # Deselect test_http_over_https_error on darwin because builtin cert fails # Disable warnings-as-errors because of deprecation warnings from socks on python 3.7 # Disable pytest-testmon because it doesn't work # adds many other pytest utilities which aren't necessary like linting preCheck = '' rm pytest.ini '';
disabledTests = [ "tls" # touches network "peercreds_unix_sock" # test urls no longer allowed ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "http_over_https_error" "bind_addr_unix" "test_ssl_env" ];
disabledTestPaths = [ # avoid attempting to use 3 packages not available on nixpkgs # (jaraco.apt, jaraco.context, yg.lockfile) "cheroot/test/test_wsgi.py" # requires pyopenssl "cheroot/test/test_ssl.py" ];
pythonImportsCheck = [ "cheroot" ];
# Some of the tests use localhost networking. __darwinAllowLocalNetworking = true;
meta = { description = "High-performance, pure-Python HTTP"; mainProgram = "cheroot"; homepage = "https://github.com/cherrypy/cheroot"; license = lib.licenses.mit; maintainers = [ ]; };}