nixpkgs/pkgs/development/python-modules/wsgitools/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

44 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
pythonAtLeast,
fetchPypi,
setuptools,
pyasyncore,
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.12") [ pyasyncore ];
pythonImportsCheck = [ "wsgitools" ];
nativeCheckInputs = [ unittestCheckHook ];
meta = with lib; {
maintainers = with 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 = licenses.gpl2Plus;
platforms = platforms.all;
};
}