Unverified Commit ef1d7036 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

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

parents ce5c0904 be06c18e
Loading
Loading
Loading
Loading
+18 −17
Original line number Diff line number Diff line
@@ -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,8 +64,8 @@ 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";
    license = licenses.mit;
    maintainers = [ ];