1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools-scm,
6 pytestCheckHook,
7 pythonOlder,
8 testfixtures,
9}:
10
11buildPythonPackage rec {
12 pname = "logfury";
13 version = "1.0.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.5";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-EwpdrOq5rVNJJCUt33BIKqLJZmKzo4JafTCYHQO3aiY=";
21 };
22
23 nativeBuildInputs = [ setuptools-scm ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 testfixtures
28 ];
29
30 postPatch = ''
31 substituteInPlace setup.py \
32 --replace "'setuptools_scm<6.0'" "'setuptools_scm'"
33 '';
34
35 pythonImportsCheck = [ "logfury" ];
36
37 meta = with lib; {
38 description = "Python module that allows for responsible, low-boilerplate logging of method calls";
39 homepage = "https://github.com/ppolewicz/logfury";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ jwiegley ];
42 };
43}