python312Packages.python-debian: 0.1.49 -> 0.1.52 (#386190)

This commit is contained in:
Nick Cao
2025-03-02 08:51:58 -05:00
committed by GitHub
3 changed files with 38 additions and 14 deletions
@@ -89,6 +89,7 @@ let
propagatedBuildInputs = with python3Packages; [
python-debian
chardet
pygobject3
setuptools
];
@@ -37,6 +37,10 @@ buildPythonPackage rec {
--replace-fail "setuptools==67.7.2" "setuptools"
'';
pythonRelaxDeps = [
"python-debian"
];
build-system = [ setuptools-scm ];
dependencies = [
@@ -1,35 +1,54 @@
{
lib,
stdenv,
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
];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
"tests/test_debfile.py"
];
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 ];
};
}