From 86bd26b32b0f166d7245135492e4f0e455192a8a Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 1 Mar 2025 14:58:10 -0500 Subject: [PATCH] python312Packages.python-debian: 0.1.49 -> 0.1.52 --- .../python-modules/python-debian/default.nix | 42 ++++++++++++------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/python-debian/default.nix b/pkgs/development/python-modules/python-debian/default.nix index f20370b86498..b088ffabc446 100644 --- a/pkgs/development/python-modules/python-debian/default.nix +++ b/pkgs/development/python-modules/python-debian/default.nix @@ -2,34 +2,48 @@ lib, buildPythonPackage, pythonOlder, - fetchPypi, - chardet, + fetchFromGitLab, + setuptools, + setuptools-scm, + charset-normalizer, + pytestCheckHook, }: buildPythonPackage rec { pname = "python-debian"; - version = "0.1.49"; - format = "setuptools"; + version = "0.1.52"; + pyproject = true; - disabled = pythonOlder "3.5"; + disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-jPZ3ow28tL56mVNsF+ETCKgnpNIgKNxZpn9sbdPw9Yw="; + src = fetchFromGitLab { + domain = "salsa.debian.org"; + owner = "python-debian-team"; + repo = "python-debian"; + tag = version; + hash = "sha256-+c+AiUCnpasOLbY6K4cuKUb6Ojwn0py78fL5W24WRwU="; }; - propagatedBuildInputs = [ chardet ]; + build-system = [ + setuptools + setuptools-scm + ]; - # No tests in archive - doCheck = false; + dependencies = [ + charset-normalizer + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; pythonImportsCheck = [ "debian" ]; - meta = with lib; { + meta = { description = "Debian package related modules"; homepage = "https://salsa.debian.org/python-debian-team/python-debian"; changelog = "https://salsa.debian.org/python-debian-team/python-debian/-/blob/master/debian/changelog"; - license = licenses.gpl2Plus; - maintainers = with maintainers; [ nickcao ]; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ nickcao ]; }; }