mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-27 10:20:37 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
bash,
|
|
openssh,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
stdenv,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deploykit";
|
|
version = "1.2.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "numtide";
|
|
repo = "deploykit";
|
|
rev = version;
|
|
hash = "sha256-RONE/oJdNmVjLYdJWDTzyXnmStkLIx92GsydaYYG5O4=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
nativeCheckInputs = [
|
|
bash
|
|
openssh
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_ssh" ];
|
|
|
|
# don't swallow stdout/stderr
|
|
pytestFlags = [ "-s" ];
|
|
|
|
pythonImportsCheck = [ "deploykit" ];
|
|
|
|
meta = {
|
|
description = "Execute commands remote via ssh and locally in parallel with python";
|
|
homepage = "https://github.com/numtide/deploykit";
|
|
changelog = "https://github.com/numtide/deploykit/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
mic92
|
|
zowoq
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|