Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 36 lines 1.0 kB view raw
1{ stdenv, buildPythonPackage, fetchPypi 2, setuptools_scm 3, cheroot, contextlib2, portend, routes, six, zc_lockfile 4, backports_unittest-mock, objgraph, pathpy, pytest, pytestcov, backports_functools_lru_cache, requests_toolbelt 5}: 6 7buildPythonPackage rec { 8 pname = "cherrypy"; 9 version = "17.4.2"; 10 11 src = fetchPypi { 12 pname = "CherryPy"; 13 inherit version; 14 sha256 = "ef1619ad161f526745d4f0e4e517753d9d985814f1280e330661333d2ba05cdf"; 15 }; 16 17 propagatedBuildInputs = [ 18 cheroot contextlib2 portend routes six zc_lockfile 19 ]; 20 21 nativeBuildInputs = [ setuptools_scm ]; 22 23 checkInputs = [ 24 backports_unittest-mock objgraph pathpy pytest pytestcov backports_functools_lru_cache requests_toolbelt 25 ]; 26 27 checkPhase = '' 28 pytest ${stdenv.lib.optionalString stdenv.isDarwin "--ignore=cherrypy/test/test_wsgi_unix_socket.py"} 29 ''; 30 31 meta = with stdenv.lib; { 32 homepage = "https://www.cherrypy.org"; 33 description = "A pythonic, object-oriented HTTP framework"; 34 license = licenses.bsd3; 35 }; 36}