Files
nixpkgs/pkgs/development/python-modules/flask-wtf/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

55 lines
986 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
hatchling,
flask,
itsdangerous,
wtforms,
email-validator,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "flask-wtf";
version = "1.2.2";
pyproject = true;
src = fetchPypi {
pname = "flask_wtf";
inherit version;
hash = "sha256-edLuHkNs9XC8y32RZTP6GHV6LxjCkKzP+rG5oLaEZms=";
};
build-system = [
hatchling
setuptools
];
dependencies = [
flask
itsdangerous
wtforms
];
optional-dependencies = {
email = [ email-validator ];
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "flask_wtf" ];
meta = {
description = "Simple integration of Flask and WTForms";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
mic92
anthonyroussel
];
homepage = "https://github.com/pallets-eco/flask-wtf/";
changelog = "https://github.com/pallets-eco/flask-wtf/releases/tag/v${version}";
};
}