From 1b783a6f04f7c8f7f0ce5fa3344a8167379a7ee0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 24 Oct 2021 20:00:33 +0200 Subject: [PATCH] python3Packages.logfury: 0.1.2 -> 1.0.1 --- .../python-modules/logfury/default.nix | 39 ++++++++++++++----- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/logfury/default.nix b/pkgs/development/python-modules/logfury/default.nix index 5f83c8633dc1..64766c232cdb 100644 --- a/pkgs/development/python-modules/logfury/default.nix +++ b/pkgs/development/python-modules/logfury/default.nix @@ -2,30 +2,49 @@ , buildPythonPackage , fetchPypi , funcsigs -, six +, setuptools-scm +, pytestCheckHook +, pythonOlder +, testfixtures }: buildPythonPackage rec { pname = "logfury"; - version = "0.1.2"; + version = "1.0.1"; + + disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; - sha256 = "1lywirv3d1lw691mc4mfpz7ak6r49klri43bbfgdnvsfppxminj2"; + sha256 = "sha256-EwpdrOq5rVNJJCUt33BIKqLJZmKzo4JafTCYHQO3aiY="; }; + nativeBuildInputs = [ + setuptools-scm + ]; + propagatedBuildInputs = [ funcsigs - six ]; - # No tests - doCheck = false; + checkInputs = [ + pytestCheckHook + testfixtures + ]; - meta = { - description = "Logfury is for python library maintainers. It allows for responsible, low-boilerplate logging of method calls."; + postPatch = '' + substituteInPlace setup.py \ + --replace "'setuptools_scm<6.0'" "'setuptools_scm'" + ''; + + pythonImportsCheck = [ + "logfury" + ]; + + meta = with lib; { + description = "Python module that allows for responsible, low-boilerplate logging of method calls"; homepage = "https://github.com/ppolewicz/logfury"; - license = lib.licenses.bsd3; - maintainers = with lib.maintainers; [ jwiegley ]; + license = licenses.bsd3; + maintainers = with maintainers; [ jwiegley ]; }; }