From c8dd37a2a79659a3d6d7890133d1f982d3bedc83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 29 Jul 2024 12:05:11 -0700 Subject: [PATCH] python312Packages.atpublic: 4.1.0 -> 5.0 Diff: https://gitlab.com/warsaw/public/-/compare/refs/tags/4.1.0...5.0 Changelog: https://gitlab.com/warsaw/public/-/blob/5.0/docs/NEWS.rst --- .../python-modules/atpublic/default.nix | 31 +++++++------------ 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/pkgs/development/python-modules/atpublic/default.nix b/pkgs/development/python-modules/atpublic/default.nix index cf752f0a59c5..9789b8c47122 100644 --- a/pkgs/development/python-modules/atpublic/default.nix +++ b/pkgs/development/python-modules/atpublic/default.nix @@ -1,47 +1,38 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitLab, pytestCheckHook, pythonOlder, hatchling, sybil, - typing-extensions, }: buildPythonPackage rec { pname = "atpublic"; - version = "4.1.0"; - format = "pyproject"; + version = "5.0"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.8"; - src = fetchPypi { - inherit pname version; - hash = "sha256-0cjNkxr3Rh9tGLxgYzg+hlTZ6e8Z1Y7m3AHoUVu/Vd8="; + src = fetchFromGitLab { + owner = "warsaw"; + repo = "public"; + rev = "refs/tags/${version}"; + hash = "sha256-cqum+4hREu0jO9iFoUUzfzn597BoMAhG+aanwnh8hb8="; }; - nativeBuildInputs = [ hatchling ]; - - propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ typing-extensions ]; + build-system = [ hatchling ]; nativeCheckInputs = [ pytestCheckHook sybil ]; - pytestFlagsArray = [ - # TypeError: FixtureManager.getfixtureclosure() missing 1 required positional argument: 'ignore_args' - "--ignore=docs/using.rst" - ]; - - postPatch = '' - sed -i '/cov=public/d' pyproject.toml - ''; - pythonImportsCheck = [ "public" ]; meta = with lib; { + 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 = ''