mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
python312Packages.plumbum: 1.8.3 -> 1.9.0 (#347796)
This commit is contained in:
commit
ef1d7036f4
@ -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 = [ ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user