1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, pytest 6, pretend 7, freezegun 8, simplejson 9}: 10 11buildPythonPackage rec { 12 pname = "structlog"; 13 version = "17.2.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "6980001045abd235fa12582222627c19b89109e58b85eb77d5a5abc778df6e20"; 18 }; 19 20 patches = [ 21 # Fix tests for pytest 3.3 22 (fetchpatch { 23 url = "https://github.com/hynek/structlog/commit/22f0ae50607a0cb024361599f84610ce290deb99.patch"; 24 sha256 = "03622i13ammkpyrdk48kimbz94gbkpcmdpy0kj2z09m1kp6q2ljv"; 25 }) 26 ]; 27 28 checkInputs = [ pytest pretend freezegun ]; 29 propagatedBuildInputs = [ simplejson ]; 30 31 checkPhase = '' 32 rm tests/test_twisted.py* 33 py.test 34 ''; 35 36 meta = { 37 description = "Painless structural logging"; 38 homepage = http://www.structlog.org/; 39 license = lib.licenses.asl20; 40 }; 41}