nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 35 lines 718 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pytest-asyncio 6, pretend 7, freezegun 8, twisted 9, simplejson 10, six 11, pythonAtLeast 12}: 13 14buildPythonPackage rec { 15 pname = "structlog"; 16 version = "21.5.0"; 17 format = "flit"; 18 19 # sdist is missing conftest.py 20 src = fetchFromGitHub { 21 owner = "hynek"; 22 repo = "structlog"; 23 rev = version; 24 sha256 = "0bc5lj0732j0hjq89llgrncyzs6k3aaffvg07kr3la44w0hlrb4l"; 25 }; 26 27 checkInputs = [ pytestCheckHook pytest-asyncio pretend freezegun simplejson twisted ]; 28 propagatedBuildInputs = [ six ]; 29 30 meta = { 31 description = "Painless structural logging"; 32 homepage = "https://github.com/hynek/structlog"; 33 license = lib.licenses.asl20; 34 }; 35}