2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, cheroot
|
|
|
|
, fetchPypi
|
2020-08-20 17:08:02 +00:00
|
|
|
, jaraco_collections
|
2022-01-13 20:06:32 +00:00
|
|
|
, more-itertools
|
|
|
|
, objgraph
|
2022-04-27 09:35:20 +00:00
|
|
|
, path
|
2022-01-13 20:06:32 +00:00
|
|
|
, portend
|
|
|
|
, pytest-forked
|
|
|
|
, pytest-services
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonAtLeast
|
|
|
|
, pythonOlder
|
|
|
|
, requests-toolbelt
|
|
|
|
, routes
|
|
|
|
, setuptools-scm
|
|
|
|
, simplejson
|
|
|
|
, zc_lockfile
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cherrypy";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "18.6.1";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "CherryPy";
|
|
|
|
inherit version;
|
2022-01-13 20:06:32 +00:00
|
|
|
hash = "sha256-8z6HKG57PjCeBOciXY5JOC2dd3PmCSJB1/YTiTxWNJU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
2021-03-20 04:20:00 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# required
|
2022-01-13 20:06:32 +00:00
|
|
|
cheroot
|
|
|
|
portend
|
|
|
|
more-itertools
|
|
|
|
zc_lockfile
|
2020-08-20 17:08:02 +00:00
|
|
|
jaraco_collections
|
2020-04-24 23:36:52 +00:00
|
|
|
# optional
|
|
|
|
routes
|
2022-01-13 20:06:32 +00:00
|
|
|
simplejson
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
objgraph
|
2022-04-27 09:35:20 +00:00
|
|
|
path
|
2022-01-13 20:06:32 +00:00
|
|
|
pytest-forked
|
|
|
|
pytest-services
|
|
|
|
pytestCheckHook
|
|
|
|
requests-toolbelt
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
preCheck = ''
|
|
|
|
# Disable doctest plugin because times out
|
|
|
|
substituteInPlace pytest.ini \
|
|
|
|
--replace "--doctest-modules" "-vvv"
|
|
|
|
sed -i "/--cov/d" pytest.ini
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-W"
|
|
|
|
"ignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Keyboard interrupt ends test suite run
|
|
|
|
"KeyboardInterrupt"
|
|
|
|
# daemonize and autoreload tests have issue with sockets within sandbox
|
|
|
|
"daemonize"
|
|
|
|
"Autoreload"
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
"test_block"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = lib.optionals stdenv.isDarwin [
|
|
|
|
"cherrypy/test/test_config_server.py"
|
|
|
|
];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"cherrypy"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-01-13 20:06:32 +00:00
|
|
|
description = "Object-oriented HTTP framework";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.cherrypy.org";
|
|
|
|
license = licenses.bsd3;
|
2022-01-13 20:06:32 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|