mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 06:44:09 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
50 lines
1 KiB
Nix
50 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
bash,
|
|
openssh,
|
|
pytestCheckHook,
|
|
stdenv,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deploykit";
|
|
version = "1.2.1";
|
|
pyproject = true;
|
|
|
|
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;
|
|
};
|
|
}
|