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

python3Packages.questionary, python3Packages.kantoku, commitizen: fixes (#448944)

parents 490caf2d 235266fc
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
{
  lib,
  python3,
  fetchPypi,
  fetchFromGitHub,
  gitMinimal,
  stdenv,
  installShellFiles,
  nix-update-script,
  python3Packages,
  versionCheckHook,
  writableTmpDirAsHomeHook,
}:

let
  # commitizen 4.9.1 is not compatible with version 3.0.52 of prompt-toolkit
  python = python3.override {
    packageOverrides = self: super: {
      prompt-toolkit = super.prompt-toolkit.overridePythonAttrs (oldAttrs: rec {
        version = "3.0.51";
        pname = "prompt_toolkit";
        src = fetchPypi {
          inherit pname version;
          hash = "sha256-kxoWLjsn/JDIbxtIux+yxSjCdhR15XycBt4TMRx7VO0=";
        };
      });
    };
  };
  python3Packages = python.pkgs;
in
python3Packages.buildPythonPackage rec {
  pname = "commitizen";
  version = "4.9.1";
@@ -41,6 +57,7 @@ python3Packages.buildPythonPackage rec {
    importlib-metadata
    jinja2
    packaging
    prompt-toolkit
    pyyaml
    questionary
    termcolor
+8 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  flit-core,
@@ -46,8 +47,15 @@ buildPythonPackage rec {
  disabledTests = [
    # AssertionError
    "test_streams"
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    # Assertion error when test_socketstats hits a permission error
    "test_resource_watcher_max_mem"
    "test_resource_watcher_max_mem_abs"
  ];

  __darwinAllowLocalNetworking = true;

  meta = {
    description = "A Process & Socket Manager built with zmq";
    homepage = "https://github.com/bentoml/kantoku";
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ buildPythonPackage rec {
    "test_blank_line_fix"

    # TypeError: Attrs.__new__() missing 1 required positional argument: 'dim'
    # https://github.com/tmbo/questionary/issues/461
    "test_print_with_style"
  ];