diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-10-24 20:00:33 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-10-26 08:15:46 +0200 |
commit | 1b783a6f04f7c8f7f0ce5fa3344a8167379a7ee0 (patch) | |
tree | 843ec8e03c4d704efb492bdaa2a42f63476f6f0d /pkgs/development/python-modules/logfury | |
parent | c989cfc77daeb060a2d7608b3d12bef93ec780a3 (diff) |
python3Packages.logfury: 0.1.2 -> 1.0.1
Diffstat (limited to 'pkgs/development/python-modules/logfury')
-rw-r--r-- | pkgs/development/python-modules/logfury/default.nix | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/logfury/default.nix b/pkgs/development/python-modules/logfury/default.nix index 5f83c8633dc18..64766c232cdb7 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 + ]; + + postPatch = '' + substituteInPlace setup.py \ + --replace "'setuptools_scm<6.0'" "'setuptools_scm'" + ''; + + pythonImportsCheck = [ + "logfury" + ]; - meta = { - description = "Logfury is for python library maintainers. It allows for responsible, low-boilerplate logging of method calls."; + 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 ]; }; } |