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
|
{
lib,
python312Packages,
}: let
poetryDef = with builtins; (fromTOML (readFile ./pyproject.toml)).tool.poetry;
name = poetryDef.name;
in
python312Packages.buildPythonApplication {
pname = name;
inherit (poetryDef) version;
src = builtins.path {
path = ./.;
name = name;
};
pyproject = true;
nativeBuildInputs = [
python312Packages.poetry-core
];
meta = {
inherit (poetryDef) description;
maintainers = poetryDef.authors;
homepage = "https://github.com/ChrisBuilds/${name}";
license = lib.licenses.mit;
mainProgram = "tte";
};
}
|