33 buildPythonPackage rec {
34 pname = "starlette-admin";
38 src = fetchFromGitHub {
40 repo = "starlette-admin";
42 hash = "sha256-DoYD8Hc5pd68+BhASw3mwwCdhu0vYHiELjVmVwU8FHs=";
45 build-system = [ hatchling ];
53 optional-dependencies = {
82 # used in get_test_container in tests/sqla/utils.py
83 # fixes FileNotFoundError: [Errno 2] No such file or directory: '/tmp/storage/...'
85 export LOCAL_PATH="$PWD/.storage"
88 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
89 # flaky, depends on test order
97 # odmantic is not packaged
99 # needs mongodb running on port 27017
102 ++ lib.optionals stdenv.hostPlatform.isDarwin [
103 # very flaky, sandbox issues?
104 # libcloud.storage.types.ContainerDoesNotExistError
105 # sqlite3.OperationalError: attempt to write a readonly database
106 "tests/sqla/test_sync_engine.py"
107 "tests/sqla/test_async_engine.py"
110 pythonImportsCheck = [
112 "starlette_admin.actions"
113 "starlette_admin.base"
114 "starlette_admin.fields"
115 "starlette_admin.i18n"
116 "starlette_admin.tools"
117 "starlette_admin.views"
121 description = "Fast, beautiful and extensible administrative interface framework for Starlette & FastApi applications";
122 homepage = "https://github.com/jowilf/starlette-admin";
123 changelog = "https://github.com/jowilf/starlette-admin/blob/${src.rev}/CHANGELOG.md";
124 license = licenses.mit;
125 maintainers = with maintainers; [ pbsds ];