Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 754 B view raw
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 = "20.1.0"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "7a48375db6274ed1d0ae6123c486472aa1d0890b08d314d2b016f3aa7f35990b"; 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}