nixpkgs/pkgs/development/python-modules/web/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

54 lines
972 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
cheroot,
legacy-cgi,
dbutils,
mysqlclient,
pymysql,
mysql-connector,
psycopg2,
}:
buildPythonPackage rec {
version = "0.62";
format = "setuptools";
pname = "web.py";
src = fetchPypi {
inherit pname version;
sha256 = "5ce684caa240654cae5950da8b4b7bc178812031e08f990518d072bd44ab525e";
};
propagatedBuildInputs = [
cheroot
legacy-cgi
];
# requires multiple running databases
doCheck = false;
pythonImportsCheck = [ "web" ];
nativeCheckInputs = [
pytestCheckHook
dbutils
mysqlclient
pymysql
mysql-connector
psycopg2
];
meta = {
description = "Makes web apps";
longDescription = ''
Think about the ideal way to write a web app.
Write the code to make it happen.
'';
homepage = "https://webpy.org/";
license = lib.licenses.publicDomain;
maintainers = with lib.maintainers; [ layus ];
};
}