Skip to content

Commit

Permalink
dput-ng: init at 1.40 (#363866)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Dec 12, 2024
2 parents 081ba79 + b1d7b01 commit c4d629c
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions pkgs/by-name/dp/dput-ng/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}

0 comments on commit c4d629c

Please sign in to comment.