dput-ng: init at 1.40 (#363866)

This commit is contained in:
Aleksana 2024-12-12 18:07:10 +08:00 committed by GitHub
commit c4d629c151
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,59 @@
{
lib,
python3,
fetchFromGitLab,
nix-update-script,
}:
let
version = "1.40";
in
python3.pkgs.buildPythonApplication {
pname = "dput-ng";
inherit version;
pyproject = true;
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "debian";
repo = "dput-ng";
rev = "refs/tags/${version}";
hash = "sha256-97NrRUmIjrP41NyI4KOEzHLlaqxehZIhSVyx9hRZ0dw=";
};
build-system = with python3.pkgs; [
setuptools
];
dependencies = with python3.pkgs; [
jsonschema
paramiko
sphinx
coverage
xdg
debian
];
postInstall = ''
cp -r bin $out/
'';
pythonImportsCheck = [ "dput" ];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
# Requires running dpkg
disabledTestPaths = [ "tests/test_upload.py" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Next-generation Debian package upload tool";
homepage = "https://dput.readthedocs.io/en/latest/";
license = with lib.licenses; [ gpl2Plus ];
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ pluiedev ];
mainProgram = "dput";
};
}