depot/third_party/nixpkgs/pkgs/development/python-modules/imia/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
834 B
Nix

{
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 = "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;
};
}