Unverified Commit 82b0c164 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

python3Packages.setproctitle: 1.3.6 -> 1.3.7 (#444696)

parents 495fa4c8 fd5cb983
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ python.pkgs.toPythonModule (
      "httpx-socks"
      "lxml"
      "typer-slim"
      "setproctitle"
    ];

    preBuild =
+18 −15
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  pythonOlder,
  fetchPypi,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
  procps,
}:

buildPythonPackage rec {
  pname = "setproctitle";
  version = "1.3.6";
  version = "1.3.7";
  pyproject = true;

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-yfMrlscAuzhPM/fPB5VLtgnTXdgnUs71f7LuCWhAkWk=";
  src = fetchFromGitHub {
    owner = "dvarrazzo";
    repo = "py-setproctitle";
    tag = "version-${version}";
    hash = "sha256-dfOdtfOXRAoCQLW307+YMsFIWRv4CupbKUxckev1oUw=";
  };

  nativeBuildInputs = [ setuptools ];
  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    pytestCheckHook
    procps
  ];

  # tries to compile programs with dependencies that aren't available
  disabledTestPaths = [ "tests/setproctitle_test.py" ];
  pythonImportsCheck = [ "setproctitle" ];

  meta = with lib; {
  meta = {
    description = "Allows a process to change its title (as displayed by system tools such as ps and top)";
    homepage = "https://github.com/dvarrazzo/py-setproctitle";
    license = licenses.bsdOriginal;
    maintainers = with maintainers; [ exi ];
    changelog = "https://github.com/dvarrazzo/py-setproctitle/blob/${src.tag}/HISTORY.rst";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ exi ];
  };
}