From 107c1442f2a8ff42dddbc0e50893d815ee6e92e9 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 10 Oct 2021 20:48:52 +0200 Subject: [PATCH] python3Packages.typed-settings: 0.10.0 -> 0.11.1 Disable click help tests. --- .../python-modules/typed-settings/default.nix | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/typed-settings/default.nix b/pkgs/development/python-modules/typed-settings/default.nix index 47c98ad9531e..ea5092cb2ae8 100644 --- a/pkgs/development/python-modules/typed-settings/default.nix +++ b/pkgs/development/python-modules/typed-settings/default.nix @@ -1,8 +1,10 @@ { lib , buildPythonPackage +, pythonOlder , fetchPypi , setuptoolsBuildHook , attrs +, cattrs , toml , pytestCheckHook , click @@ -10,28 +12,43 @@ buildPythonPackage rec { pname = "typed-settings"; - version = "0.10.0"; + version = "0.11.1"; format = "pyproject"; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "1fr6qkq3ldlp5i5l4b891w9ail9lfhaxlar3yij912slq5w0s8aw"; + sha256 = "sha256-gcyOeUyRAwU5s+XoQO/yM0tx7QHjDsBeyoe5HRZHtIs="; }; nativeBuildInputs = [ setuptoolsBuildHook - pytestCheckHook ]; propagatedBuildInputs = [ attrs + cattrs toml ]; + preCheck = '' + pushd tests + ''; + checkInputs = [ click + pytestCheckHook ]; + disabledTests = [ + # mismatches in click help output + "test_help" + ]; + + postCheck = '' + popd + ''; + meta = { description = "Typed settings based on attrs classes"; homepage = "https://gitlab.com/sscherfke/typed-settings";