depot/third_party/nixpkgs/pkgs/development/python-modules/filedepot/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

68 lines
1.3 KiB
Nix

{
lib,
anyascii,
buildPythonPackage,
fetchFromGitHub,
flaky,
google-cloud-storage,
mock,
pillow,
pymongo,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
sqlalchemy,
}:
buildPythonPackage rec {
pname = "filedepot";
version = "0.11.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "amol-";
repo = "depot";
rev = "refs/tags/${version}";
hash = "sha256-693H/u+Wg2G9sdoUkC6DQo9WkmIlKnh8NKv3ufK/eyQ=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
anyascii
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"
];
pythonImportsCheck = [ "depot" ];
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}