diff --git a/pkgs/development/python-modules/python-utils/default.nix b/pkgs/development/python-modules/python-utils/default.nix index 3fb825df95bc..40e963763f02 100644 --- a/pkgs/development/python-modules/python-utils/default.nix +++ b/pkgs/development/python-modules/python-utils/default.nix @@ -2,36 +2,44 @@ , buildPythonPackage , fetchFromGitHub , loguru -, pytestCheckHook -, six +, pytest-asyncio , pytest-mypy +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "python-utils"; - version = "3.3.3"; + version = "3.4.5"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "WoLpH"; repo = pname; - rev = "v${version}"; - hash = "sha256-U6yamXbG8CUrNnFmGTBpHUelZSgoaNyB2CdUSH9WdMA="; + rev = "refs/tags/v${version}"; + hash = "sha256-O/+jvdzzxUFaQdAfUM9p40fPPDNN+stTauCD993HH6Y="; }; - # disable coverage and linting postPatch = '' sed -i '/--cov/d' pytest.ini - sed -i '/--flake8/d' pytest.ini ''; - propagatedBuildInputs = [ - loguru - six - ]; + passthru.optional-dependencies = { + loguru = [ + loguru + ]; + }; checkInputs = [ + pytest-asyncio pytest-mypy pytestCheckHook + ] ++ passthru.optional-dependencies.loguru; + + pythonImportsCheck = [ + "python_utils" ]; pytestFlagsArray = [ @@ -42,5 +50,6 @@ buildPythonPackage rec { description = "Module with some convenient utilities"; homepage = "https://github.com/WoLpH/python-utils"; license = licenses.bsd3; + maintainers = with maintainers; [ ]; }; }