python312Packages.flask-bootstrap: refactor
This commit is contained in:
@@ -1,32 +1,53 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
flask,
|
||||
visitor,
|
||||
dominate,
|
||||
pytestCheckHook,
|
||||
requests,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flask-bootstrap";
|
||||
version = "3.3.7.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Flask-Bootstrap";
|
||||
inherit version;
|
||||
sha256 = "1j1s2bplaifsnmr8vfxa3czca4rz78xyhrg4chx39xl306afs26b";
|
||||
src = fetchFromGitHub {
|
||||
owner = "mbr";
|
||||
repo = "flask-bootstrap";
|
||||
tag = version;
|
||||
hash = "sha256-TsRSNhrI1jZU/beX3G7LM64IrFagD6AYiluoGzy12jE=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
flask
|
||||
visitor
|
||||
dominate
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
pythonImportsCheck = [ "flask_bootstrap" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
requests
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# requires network access
|
||||
"test_bootstrap_version_matches"
|
||||
# requires flask-appconfig
|
||||
"test_index"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/mbr/flask-bootstrap";
|
||||
description = "Ready-to-use Twitter-bootstrap for use in Flask";
|
||||
license = licenses.asl20;
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user