Files
nixpkgs/pkgs/development/python-modules/filedepot/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

71 lines
1.4 KiB
Nix

{
lib,
anyascii,
buildPythonPackage,
fetchFromGitHub,
flaky,
google-cloud-storage,
legacy-cgi,
mock,
pillow,
pymongo,
pytestCheckHook,
pythonAtLeast,
requests,
setuptools,
sqlalchemy,
}:
buildPythonPackage rec {
pname = "filedepot";
version = "0.11.0";
pyproject = true;
src = fetchFromGitHub {
owner = "amol-";
repo = "depot";
tag = version;
hash = "sha256-693H/u+Wg2G9sdoUkC6DQo9WkmIlKnh8NKv3ufK/eyQ=";
};
build-system = [ setuptools ];
dependencies = [
anyascii
legacy-cgi
google-cloud-storage
];
nativeCheckInputs = [
flaky
mock
pillow
pymongo
pytestCheckHook
requests
sqlalchemy
];
disabledTestPaths = [
# ModuleNotFoundError: No module named 'depot._pillow_compat'
"tests/test_fields_sqlalchemy.py"
# The examples have tests
"examples"
# Missing dependencies (TurboGears2 and ming)
"tests/test_fields_ming.py"
"tests/test_wsgi_middleware.py"
];
disabledTests = lib.optionals (pythonAtLeast "3.13") [ "test_notexisting" ];
pythonImportsCheck = [ "depot" ];
meta = {
description = "Toolkit for storing files and attachments in web applications";
homepage = "https://github.com/amol-/depot";
changelog = "https://github.com/amol-/depot/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}