From c73570b668c44f602be8e25cde07b0f1d01475d3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 10 Sep 2021 14:13:20 +0200 Subject: [PATCH 1/2] python3Packages.deprecated: 1.2.12 -> 1.2.13 --- .../development/python-modules/deprecated/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/deprecated/default.nix b/pkgs/development/python-modules/deprecated/default.nix index 4cb4805b4ca4..f54d6f8cd13f 100644 --- a/pkgs/development/python-modules/deprecated/default.nix +++ b/pkgs/development/python-modules/deprecated/default.nix @@ -1,12 +1,17 @@ -{ lib, fetchPypi, buildPythonPackage, wrapt, pytest }: +{ lib +, fetchPypi +, buildPythonPackage +, wrapt +, pytest +}: buildPythonPackage rec { pname = "Deprecated"; - version = "1.2.12"; + version = "1.2.13"; src = fetchPypi { inherit pname version; - sha256 = "6d2de2de7931a968874481ef30208fd4e08da39177d61d3d4ebdf4366e7dbca1"; + sha256 = "sha256-Q6xTNdqQwxwkugKK9TapHUHVP55pAd2wIbzFcs5E440="; }; propagatedBuildInputs = [ wrapt ]; From bcfd18344fe26f5e50f3503b2682ec091da6036b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 10 Sep 2021 14:16:24 +0200 Subject: [PATCH 2/2] python3Packages.deprecated: switch to pytestCheckHook --- .../python-modules/deprecated/default.nix | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/deprecated/default.nix b/pkgs/development/python-modules/deprecated/default.nix index f54d6f8cd13f..40c20a40c20c 100644 --- a/pkgs/development/python-modules/deprecated/default.nix +++ b/pkgs/development/python-modules/deprecated/default.nix @@ -2,24 +2,32 @@ , fetchPypi , buildPythonPackage , wrapt -, pytest +, pytestCheckHook }: buildPythonPackage rec { - pname = "Deprecated"; + pname = "deprecated"; version = "1.2.13"; src = fetchPypi { - inherit pname version; + pname = "Deprecated"; + inherit version; sha256 = "sha256-Q6xTNdqQwxwkugKK9TapHUHVP55pAd2wIbzFcs5E440="; }; - propagatedBuildInputs = [ wrapt ]; - checkInputs = [ pytest ]; + propagatedBuildInputs = [ + wrapt + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "deprecated" ]; + meta = with lib; { homepage = "https://github.com/tantale/deprecated"; description = "Python @deprecated decorator to deprecate old python classes, functions or methods"; - platforms = platforms.all; license = licenses.mit; maintainers = with maintainers; [ tilpner ]; };