Files

51 lines
1011 B
Nix

{
anyio,
buildPythonPackage,
django,
fastapi,
fetchFromGitHub,
hatchling,
httpx,
lib,
litestar,
pytestCheckHook,
starlette,
uvicorn,
}:
buildPythonPackage (finalAttrs: {
pname = "datastar-py";
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "starfederation";
repo = "datastar-python";
tag = "v${finalAttrs.version}";
hash = "sha256-epshwHwpRnrgOQ6/jiy6Iyv4y1fa5ZipgiFShKEOxtA=";
};
build-system = [ hatchling ];
pythonImportsCheck = [ "datastar_py" ];
nativeCheckInputs = [
anyio
django
fastapi
httpx
litestar
pytestCheckHook
starlette
uvicorn
];
meta = {
changelog = "https://github.com/starfederation/datastar-python/releases/tag/${finalAttrs.src.tag}";
description = "Helper functions and classes for the Datastar library";
homepage = "https://github.com/starfederation/datastar-python";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dotlambda ];
};
})