2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonAtLeast,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
pyasyncore,
|
|
|
|
unittestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wsgitools";
|
|
|
|
version = "0.3.1";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-MTh2BwNTu7NsTHuvoH+r0YHjEGfphX84f04Ah2eu02A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
# the built-in asyncore library was removed in python 3.12
|
|
|
|
dependencies = lib.optionals (pythonAtLeast "3.12") [ pyasyncore ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "wsgitools" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
maintainers = with maintainers; [ clkamp ];
|
|
|
|
description = "A set of tools working with WSGI";
|
|
|
|
longDescription = ''
|
|
|
|
wsgitools is a set of tools working with WSGI (see PEP 333). It
|
|
|
|
includes classes for filtering content, middlewares for caching,
|
|
|
|
logging and tracebacks as well as two backends for SCGI. Goals
|
|
|
|
in writing it were portability and simplicity.
|
|
|
|
'';
|
|
|
|
homepage = "https://subdivi.de/~helmut/wsgitools/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|