1{ 2 lib, 3 buildPythonPackage, 4 dateutils, 5 fetchFromGitHub, 6 poetry-core, 7 pyaml, 8 pythonOlder, 9 pythonRelaxDepsHook, 10}: 11 12buildPythonPackage rec { 13 pname = "thelogrus"; 14 version = "0.7.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "unixorn"; 21 repo = "thelogrus"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-96/EjDh5XcTsfUcTnsltsT6LMYbyKuM/eNyeq2Pukfo="; 24 }; 25 26 nativeBuildInputs = [ 27 poetry-core 28 pythonRelaxDepsHook 29 ]; 30 31 pythonRelaxDeps = [ "pyaml" ]; 32 33 propagatedBuildInputs = [ 34 dateutils 35 pyaml 36 ]; 37 38 # Module has no unit tests 39 doCheck = false; 40 41 pythonImportsCheck = [ "thelogrus" ]; 42 43 meta = with lib; { 44 description = "Python 3 version of logrus"; 45 mainProgram = "human-time"; 46 homepage = "https://github.com/unixorn/thelogrus"; 47 changelog = "https://github.com/unixorn/thelogrus/blob/${version}/ChangeLog.md"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}