1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, loguru 5, pytest-asyncio 6, pytest-mypy 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "python-utils"; 13 version = "3.4.5"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "WoLpH"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-O/+jvdzzxUFaQdAfUM9p40fPPDNN+stTauCD993HH6Y="; 23 }; 24 25 postPatch = '' 26 sed -i '/--cov/d' pytest.ini 27 ''; 28 29 passthru.optional-dependencies = { 30 loguru = [ 31 loguru 32 ]; 33 }; 34 35 checkInputs = [ 36 pytest-asyncio 37 pytest-mypy 38 pytestCheckHook 39 ] ++ passthru.optional-dependencies.loguru; 40 41 pythonImportsCheck = [ 42 "python_utils" 43 ]; 44 45 pytestFlagsArray = [ 46 "_python_utils_tests" 47 ]; 48 49 meta = with lib; { 50 description = "Module with some convenient utilities"; 51 homepage = "https://github.com/WoLpH/python-utils"; 52 license = licenses.bsd3; 53 maintainers = with maintainers; [ ]; 54 }; 55}