2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
poetry-core,
|
|
|
|
starlette,
|
|
|
|
fastapi,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "imia";
|
|
|
|
version = "0.5.3";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-4CzevO7xgo8Hb1JHe/eGEtq/KCrJM0hV/7SRV2wmux8=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
starlette
|
|
|
|
fastapi
|
|
|
|
];
|
|
|
|
|
|
|
|
# running the real tests would require sqlalchemy 1.4 and starsessions 1.x
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "imia" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Authentication library for Starlette and FastAPI";
|
2024-01-02 11:29:13 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|