Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #261405 from NixOS/backport-257787-to-release-23.05

[Backport release-23.05] python3Packages.click-aliases: 1.0.1 -> 1.0.2

authored by

Fabián Heredia Montiel and committed by
GitHub
679cadfd ebb21e46

+7 -43
-39
pkgs/development/python-modules/click-aliases/0001-Fix-quotes-in-test.patch
··· 1 - From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 - From: Nicolas Benes <nbenes.gh@xandea.de> 3 - Date: Mon, 12 Jun 2023 11:29:32 +0200 4 - Subject: [PATCH] Fix quotes in test 5 - 6 - 7 - diff --git a/tests/test_basic.py b/tests/test_basic.py 8 - index 077e6c0..90bbdc3 100644 9 - --- a/tests/test_basic.py 10 - +++ b/tests/test_basic.py 11 - @@ -43,8 +43,8 @@ def test_foobar(runner): 12 - 13 - TEST_INVALID = """Usage: cli [OPTIONS] COMMAND [ARGS]... 14 - {} 15 - -Error: No such command "bar". 16 - -""".format('Try "cli --help" for help.\n' if _click7 else '') 17 - +Error: No such command 'bar'. 18 - +""".format("Try 'cli --help' for help.\n" if _click7 else '') 19 - 20 - 21 - def test_invalid(runner): 22 - diff --git a/tests/test_foobar.py b/tests/test_foobar.py 23 - index fd6c4e6..ab0ad5d 100644 24 - --- a/tests/test_foobar.py 25 - +++ b/tests/test_foobar.py 26 - @@ -44,8 +44,8 @@ def test_foobar(runner): 27 - 28 - TEST_INVALID = """Usage: cli [OPTIONS] COMMAND [ARGS]... 29 - {} 30 - -Error: No such command "baz". 31 - -""".format('Try "cli --help" for help.\n' if _click7 else '') 32 - +Error: No such command 'baz'. 33 - +""".format("Try 'cli --help' for help.\n" if _click7 else '') 34 - 35 - 36 - def test_invalid(runner): 37 - -- 38 - 2.40.1 39 -
···
+7 -4
pkgs/development/python-modules/click-aliases/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , click 5 , pytestCheckHook 6 }: 7 8 buildPythonPackage rec { 9 pname = "click-aliases"; 10 - version = "1.0.1"; 11 12 src = fetchFromGitHub { 13 owner = "click-contrib"; 14 repo = "click-aliases"; 15 rev = "v${version}"; 16 - hash = "sha256-vzWlCb4m9TdRaVz4DrlRRZ60+9gj60NoiALgvaIG0gA="; 17 }; 18 19 - patches = [ 20 - ./0001-Fix-quotes-in-test.patch 21 ]; 22 23 propagatedBuildInputs = [
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 + , poetry-core 5 , click 6 , pytestCheckHook 7 }: 8 9 buildPythonPackage rec { 10 pname = "click-aliases"; 11 + version = "1.0.2"; 12 + 13 + pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "click-contrib"; 17 repo = "click-aliases"; 18 rev = "v${version}"; 19 + hash = "sha256-ZrNdxUMLRre0U9xCyyU8HjByNGMSXiuMDVjW9e88eyk="; 20 }; 21 22 + nativeBuildInputs = [ 23 + poetry-core 24 ]; 25 26 propagatedBuildInputs = [