nixpkgs/pkgs/development/python-modules/pytest-flask/default.nix
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

47 lines
995 B
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
flask,
pytest,
pytestCheckHook,
setuptools-scm,
werkzeug,
}:
buildPythonPackage rec {
pname = "pytest-flask";
version = "1.3.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-WL4cl7Ibo8TUfgp2ketBAHdIUGw2v1EAT3jfEGkfqV4=";
};
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ pytest ];
propagatedBuildInputs = [
flask
werkzeug
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pytest_flask" ];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
"tests/test_live_server.py"
];
meta = {
description = "Set of pytest fixtures to test Flask applications";
homepage = "https://pytest-flask.readthedocs.io/";
changelog = "https://github.com/pytest-dev/pytest-flask/blob/${version}/docs/changelog.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ vanschelven ];
};
}