Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 733 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, pytest 6, python-rapidjson 7, pretend 8, freezegun 9, twisted 10, simplejson 11, six 12, pythonAtLeast 13}: 14 15buildPythonPackage rec { 16 pname = "structlog"; 17 version = "19.1.0"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "5feae03167620824d3ae3e8915ea8589fc28d1ad6f3edf3cc90ed7c7cb33fab5"; 22 }; 23 24 checkInputs = [ pytest 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}