python310Packages.static3: init at 0.7.0

This commit is contained in:
Martin Weinelt 2023-05-08 19:14:36 +02:00
parent 7857ee842e
commit 35f4603c86
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,55 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# optionals
, genshi
# tests
, pytestCheckHook
, webtest
}:
buildPythonPackage rec {
pname = "static3";
version = "0.7.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "rmohr";
repo = "static3";
rev = "v${version}";
hash = "sha256-uFgv+57/UZs4KoOdkFxbvTEDQrJbb0iYJ5JoWWN4yFY=";
};
postPatch = ''
substituteInPlace setup.py \
--replace ", 'pytest-cov'" ""
'';
passthru.optional-dependencies = {
KidMagic = [
# TODO: kid
];
Genshimagic = [
genshi
];
};
pythonImportsCheck = [
"static"
];
nativeCheckInputs = [
pytestCheckHook
webtest
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
meta = with lib; {
changelog = "https://github.com/rmohr/static3/releases/tag/v${version}";
description = "A really simple WSGI way to serve static (or mixed) content";
homepage = "https://github.com/rmohr/static3";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -11485,6 +11485,8 @@ self: super: with self; {
stashy = callPackage ../development/python-modules/stashy { };
static3 = callPackage ../development/python-modules/static3 { };
staticjinja = callPackage ../development/python-modules/staticjinja { };
statistics = callPackage ../development/python-modules/statistics { };