Loading pkgs/development/python-modules/starlette-admin/default.nix +6 −30 Original line number Diff line number Diff line Loading @@ -32,42 +32,16 @@ buildPythonPackage rec { pname = "starlette-admin"; version = "0.14.1"; version = "0.15.0"; pyproject = true; src = fetchFromGitHub { owner = "jowilf"; repo = "starlette-admin"; rev = version; hash = "sha256-DoYD8Hc5pd68+BhASw3mwwCdhu0vYHiELjVmVwU8FHs="; tag = version; hash = "sha256-R9ZRrJaBp1joT3DtymvS+Ac0MzEUFYFovgxMW0njsT0="; }; # recreates https://github.com/jowilf/starlette-admin/pull/630 which cannot be cherry-picked postPatch = '' test_files_to_fix=( tests/mongoengine/test_auth.py tests/odmantic/test_async_engine.py tests/odmantic/test_auth.py tests/odmantic/test_sync_engine.py tests/sqla/test_async_engine.py tests/sqla/test_auth.py tests/sqla/test_multiple_pks.py tests/sqla/test_sqla_and_pydantic.py tests/sqla/test_sqla_utils.py tests/sqla/test_sqlmodel.py tests/sqla/test_sync_engine.py tests/sqla/test_view_serialization.py tests/test_auth.py ) substituteInPlace "''${test_files_to_fix[@]}" \ --replace-fail \ 'from httpx import AsyncClient' \ 'from httpx import AsyncClient, ASGITransport' \ --replace-fail \ 'AsyncClient(app=app,' \ 'AsyncClient(transport=ASGITransport(app=app),' ''; build-system = [ hatchling ]; dependencies = [ Loading Loading @@ -122,6 +96,8 @@ buildPythonPackage rec { [ # odmantic is not packaged "tests/odmantic" # beanie is not packaged "tests/beanie" # needs mongodb running on port 27017 "tests/mongoengine" ] Loading @@ -146,7 +122,7 @@ buildPythonPackage rec { meta = with lib; { description = "Fast, beautiful and extensible administrative interface framework for Starlette & FastApi applications"; homepage = "https://github.com/jowilf/starlette-admin"; changelog = "https://github.com/jowilf/starlette-admin/blob/${src.rev}/CHANGELOG.md"; changelog = "https://github.com/jowilf/starlette-admin/blob/${src.tag}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ pbsds ]; }; Loading Loading
pkgs/development/python-modules/starlette-admin/default.nix +6 −30 Original line number Diff line number Diff line Loading @@ -32,42 +32,16 @@ buildPythonPackage rec { pname = "starlette-admin"; version = "0.14.1"; version = "0.15.0"; pyproject = true; src = fetchFromGitHub { owner = "jowilf"; repo = "starlette-admin"; rev = version; hash = "sha256-DoYD8Hc5pd68+BhASw3mwwCdhu0vYHiELjVmVwU8FHs="; tag = version; hash = "sha256-R9ZRrJaBp1joT3DtymvS+Ac0MzEUFYFovgxMW0njsT0="; }; # recreates https://github.com/jowilf/starlette-admin/pull/630 which cannot be cherry-picked postPatch = '' test_files_to_fix=( tests/mongoengine/test_auth.py tests/odmantic/test_async_engine.py tests/odmantic/test_auth.py tests/odmantic/test_sync_engine.py tests/sqla/test_async_engine.py tests/sqla/test_auth.py tests/sqla/test_multiple_pks.py tests/sqla/test_sqla_and_pydantic.py tests/sqla/test_sqla_utils.py tests/sqla/test_sqlmodel.py tests/sqla/test_sync_engine.py tests/sqla/test_view_serialization.py tests/test_auth.py ) substituteInPlace "''${test_files_to_fix[@]}" \ --replace-fail \ 'from httpx import AsyncClient' \ 'from httpx import AsyncClient, ASGITransport' \ --replace-fail \ 'AsyncClient(app=app,' \ 'AsyncClient(transport=ASGITransport(app=app),' ''; build-system = [ hatchling ]; dependencies = [ Loading Loading @@ -122,6 +96,8 @@ buildPythonPackage rec { [ # odmantic is not packaged "tests/odmantic" # beanie is not packaged "tests/beanie" # needs mongodb running on port 27017 "tests/mongoengine" ] Loading @@ -146,7 +122,7 @@ buildPythonPackage rec { meta = with lib; { description = "Fast, beautiful and extensible administrative interface framework for Starlette & FastApi applications"; homepage = "https://github.com/jowilf/starlette-admin"; changelog = "https://github.com/jowilf/starlette-admin/blob/${src.rev}/CHANGELOG.md"; changelog = "https://github.com/jowilf/starlette-admin/blob/${src.tag}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ pbsds ]; }; Loading