summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/fortune/default.nix
blob: 10f858de13304247d6d891984a6b28f6a7607acd (plain)
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
32
{
  lib,
  buildPythonPackage,
  fetchFromGitea,
  setuptools,
}:
let
  version = "1.1.2";
in
buildPythonPackage {
  pname = "fortune";
  inherit version;
  pyproject = true;

  src = fetchFromGitea {
    domain = "codeberg.org";
    owner = "jamesansley";
    repo = "fortune";
    tag = "v${version}";
    hash = "sha256-XEWO1B+o0p7mpHprvbdBgfSQrqPuUTaotulcP3FS/Mg=";
  };

  build-system = [ setuptools ];

  meta = {
    description = "A rewrite of fortune in python";
    mainProgram = "fortune";
    homepage = "https://codeberg.org/jamesansley/fortune";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ arthsmn ];
  };
}