about summary refs log tree commit diff
path: root/pkgs/development/python-modules/imia/default.nix
blob: b5b855c92d74222ea53d0e1b7b2644778e96bc20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, buildPythonPackage
, fetchPypi
, poetry-core
, starlette
, fastapi
}:

buildPythonPackage rec {
  pname = "imia";
  version = "0.5.3";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-4CzevO7xgo8Hb1JHe/eGEtq/KCrJM0hV/7SRV2wmux8=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    starlette
    fastapi
  ];

  # running the real tests would require sqlalchemy 1.4 and starsessions 1.x
  doCheck = false;
  pythonImportsCheck = [ "imia" ];

  meta = with lib; {
    description = "An authentication library for Starlette and FastAPI";
    changelog = "https://github.com/alex-oleshkevich/imia/releases/tag/v${version}";
    homepage = "https://github.com/alex-oleshkevich/imia";
    license = licenses.mit;
    maintainers = teams.wdz.members;
  };
}