1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, pytest-asyncio 6, python-rapidjson 7, pretend 8, freezegun 9, twisted 10, simplejson 11, six 12, pythonAtLeast 13}: 14 15buildPythonPackage rec { 16 pname = "structlog"; 17 version = "21.2.0"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "7ac42b565e1295712313f91edbcb64e0840a9037d888c8954f11fa6c43270e99"; 22 }; 23 24 checkInputs = [ pytest pytest-asyncio pretend freezegun simplejson twisted ] 25 ++ lib.optionals (pythonAtLeast "3.6") [ python-rapidjson ]; 26 propagatedBuildInputs = [ six ]; 27 28 checkPhase = '' 29 # rm tests/test_twisted.py* 30 py.test 31 ''; 32 33 meta = { 34 description = "Painless structural logging"; 35 homepage = "http://www.structlog.org/"; 36 license = lib.licenses.asl20; 37 }; 38}