mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 04:46:51 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
legacy-cgi,
|
|
pyasyncore,
|
|
pythonAtLeast,
|
|
setuptools,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wsgitools";
|
|
version = "0.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-MTh2BwNTu7NsTHuvoH+r0YHjEGfphX84f04Ah2eu02A=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
# the built-in asyncore library was removed in python 3.12
|
|
dependencies =
|
|
lib.optionals (pythonAtLeast "3.13") [ legacy-cgi ]
|
|
++ lib.optionals (pythonAtLeast "3.12") [ pyasyncore ];
|
|
|
|
pythonImportsCheck = [ "wsgitools" ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
meta = {
|
|
maintainers = with lib.maintainers; [ clkamp ];
|
|
description = "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 = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|