Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 pytestCheckHook,
6 hatchling,
7 sybil,
8}:
9
10buildPythonPackage rec {
11 pname = "atpublic";
12 version = "5.0";
13 pyproject = true;
14
15 src = fetchFromGitLab {
16 owner = "warsaw";
17 repo = "public";
18 tag = version;
19 hash = "sha256-cqum+4hREu0jO9iFoUUzfzn597BoMAhG+aanwnh8hb8=";
20 };
21
22 build-system = [ hatchling ];
23
24 nativeCheckInputs = [
25 pytestCheckHook
26 sybil
27 ];
28
29 pythonImportsCheck = [ "public" ];
30
31 meta = {
32 changelog = "https://gitlab.com/warsaw/public/-/blob/${version}/docs/NEWS.rst";
33 description = "Python decorator and function which populates a module's __all__ and globals";
34 homepage = "https://public.readthedocs.io/";
35 longDescription = ''
36 This is a very simple decorator and function which populates a module's
37 __all__ and optionally the module globals.
38 '';
39 license = lib.licenses.asl20;
40 maintainers = with lib.maintainers; [ eadwu ];
41 };
42}