nixpkgs/pkgs/development/python-modules/structlog/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
715 B
Nix
Raw Normal View History

2017-12-30 12:25:04 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
2020-06-20 17:28:34 +01:00
, pytest-asyncio
2017-12-30 12:25:04 +00:00
, pretend
, freezegun
, simplejson
, six
, pythonAtLeast
2017-12-30 12:25:04 +00:00
}:
buildPythonPackage rec {
pname = "structlog";
version = "21.5.0";
format = "flit";
2017-12-30 12:25:04 +00:00
src = fetchFromGitHub {
owner = "hynek";
repo = "structlog";
rev = version;
sha256 = "0bc5lj0732j0hjq89llgrncyzs6k3aaffvg07kr3la44w0hlrb4l";
2017-12-30 12:25:04 +00:00
};
propagatedBuildInputs = [ six ];
2017-12-30 12:25:04 +00:00
checkInputs = [ pytestCheckHook pytest-asyncio pretend freezegun simplejson ];
meta = with lib; {
2017-12-30 12:25:04 +00:00
description = "Painless structural logging";
homepage = "https://github.com/hynek/structlog";
license = licenses.asl20;
maintainers = with maintainers; [ ];
2017-12-30 12:25:04 +00:00
};
}