Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 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 = "21.1.0"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "d9d2d890532e8db83c6977a2a676fb1889922ff0c26ad4dc0ecac26f9fafbc57"; 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}