2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, anyascii
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flaky
|
|
|
|
, google-cloud-storage
|
|
|
|
, mock
|
|
|
|
, pillow
|
|
|
|
, pymongo
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2024-02-29 20:09:43 +00:00
|
|
|
, setuptools
|
2023-07-15 17:15:38 +00:00
|
|
|
, sqlalchemy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "filedepot";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.11.0";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "amol-";
|
|
|
|
repo = "depot";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-693H/u+Wg2G9sdoUkC6DQo9WkmIlKnh8NKv3ufK/eyQ=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
anyascii
|
|
|
|
google-cloud-storage
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
flaky
|
|
|
|
mock
|
|
|
|
pillow
|
|
|
|
pymongo
|
|
|
|
pytestCheckHook
|
|
|
|
requests
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
2023-10-09 19:29:22 +00:00
|
|
|
# ModuleNotFoundError: No module named 'depot._pillow_compat'
|
|
|
|
"tests/test_fields_sqlalchemy.py"
|
2023-07-15 17:15:38 +00:00
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|