summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/atpublic/default.nix
blob: 6deb20ca96cc9ff5df8b377cd18cc26301097c08 (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
33
34
35
36
37
38
39
40
41
42
{
  lib,
  buildPythonPackage,
  fetchFromGitLab,
  pytestCheckHook,
  hatchling,
  sybil,
}:

buildPythonPackage rec {
  pname = "atpublic";
  version = "5.0";
  pyproject = true;

  src = fetchFromGitLab {
    owner = "warsaw";
    repo = "public";
    tag = version;
    hash = "sha256-cqum+4hREu0jO9iFoUUzfzn597BoMAhG+aanwnh8hb8=";
  };

  build-system = [ hatchling ];

  nativeCheckInputs = [
    pytestCheckHook
    sybil
  ];

  pythonImportsCheck = [ "public" ];

  meta = {
    changelog = "https://gitlab.com/warsaw/public/-/blob/${version}/docs/NEWS.rst";
    description = "Python decorator and function which populates a module's __all__ and globals";
    homepage = "https://public.readthedocs.io/";
    longDescription = ''
      This is a very simple decorator and function which populates a module's
      __all__ and optionally the module globals.
    '';
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ eadwu ];
  };
}