File: default.nix

package info (click to toggle)
terminaltexteffects 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,324 kB
  • sloc: python: 16,857; makefile: 3
file content (31 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (2)
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";
    };
  }