1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 poetry-core,
6 starlette,
7 fastapi,
8}:
9
10buildPythonPackage rec {
11 pname = "imia";
12 version = "0.5.3";
13 format = "pyproject";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-4CzevO7xgo8Hb1JHe/eGEtq/KCrJM0hV/7SRV2wmux8=";
18 };
19
20 nativeBuildInputs = [ poetry-core ];
21
22 propagatedBuildInputs = [
23 starlette
24 fastapi
25 ];
26
27 # running the real tests would require sqlalchemy 1.4 and starsessions 1.x
28 doCheck = false;
29 pythonImportsCheck = [ "imia" ];
30
31 meta = with lib; {
32 description = "Authentication library for Starlette and FastAPI";
33 changelog = "https://github.com/alex-oleshkevich/imia/releases/tag/v${version}";
34 homepage = "https://github.com/alex-oleshkevich/imia";
35 license = licenses.mit;
36 teams = [ teams.wdz ];
37 };
38}