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