python312Packages.plumbum: 1.8.3 -> 1.9.0 (#347796)

This commit is contained in:
Fabian Affolter 2024-10-11 13:53:08 +02:00 committed by GitHub
commit ef1d7036f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,46 +2,47 @@
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
hatch-vcs,
openssh,
ps,
hatchling,
paramiko,
psutil,
pytest-cov-stub,
pytest-mock,
pytest-timeout,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "plumbum";
version = "1.8.3";
format = "pyproject";
version = "1.9.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "tomerfiliba";
repo = "plumbum";
rev = "refs/tags/v${version}";
hash = "sha256-k2H/FBQAWrCN1P587s/OhiCGNasMKEFJYIBIU808rlE=";
hash = "sha256-3PAvSjZ0+BMq+/g4qNNZl27KnAm01fWFYxBBY+feNTU=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"--cov-config=setup.cfg", ' ""
'';
nativeBuildInputs = [
build-system = [
hatchling
hatch-vcs
];
optional-dependencies = {
ssh = [ paramiko ];
};
nativeCheckInputs = [
openssh
ps
psutil
pytest-cov-stub
pytest-mock
pytest-timeout
pytestCheckHook
];
] ++ lib.flatten (builtins.attrValues optional-dependencies);
preCheck = ''
export HOME=$TMP
@ -63,9 +64,9 @@ buildPythonPackage rec {
];
meta = with lib; {
description = "Module Shell Combinators";
changelog = "https://github.com/tomerfiliba/plumbum/releases/tag/v${version}";
description = " Plumbum: Shell Combinators";
homepage = " https://github.com/tomerfiliba/plumbum ";
homepage = " https://github.com/tomerfiliba/plumbum";
license = licenses.mit;
maintainers = [ ];
};