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