mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 17:46:38 +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>
54 lines
972 B
Nix
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 ];
|
|
};
|
|
}
|