Files
nixpkgs/pkgs/development/python-modules/atpublic/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
pytestCheckHook,
pythonOlder,
hatchling,
sybil,
}:
buildPythonPackage rec {
pname = "atpublic";
version = "5.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitLab {
owner = "warsaw";
repo = "public";
rev = "refs/tags/${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 ];
};
}