depot/third_party/nixpkgs/pkgs/development/python-modules/filedepot/default.nix

67 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, anyascii
, buildPythonPackage
, fetchFromGitHub
, flaky
, google-cloud-storage
, mock
, paste
, pillow
, pymongo
, pytestCheckHook
, pythonOlder
, requests
, sqlalchemy
}:
buildPythonPackage rec {
pname = "filedepot";
version = "0.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "amol-";
repo = "depot";
rev = "refs/tags/${version}";
hash = "sha256-vPceky5cvmy3MooWz7dRdy68VoAHN7i3a7egBs4dPE8=";
};
propagatedBuildInputs = [
anyascii
google-cloud-storage
];
nativeCheckInputs = [
flaky
mock
paste
pillow
pymongo
pytestCheckHook
requests
sqlalchemy
];
disabledTestPaths = [
# 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 ];
};
}