nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05-pre 50 lines 923 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, funcsigs 5, setuptools-scm 6, pytestCheckHook 7, pythonOlder 8, testfixtures 9}: 10 11buildPythonPackage rec { 12 pname = "logfury"; 13 version = "1.0.1"; 14 15 disabled = pythonOlder "3.5"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "sha256-EwpdrOq5rVNJJCUt33BIKqLJZmKzo4JafTCYHQO3aiY="; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools-scm 24 ]; 25 26 propagatedBuildInputs = [ 27 funcsigs 28 ]; 29 30 checkInputs = [ 31 pytestCheckHook 32 testfixtures 33 ]; 34 35 postPatch = '' 36 substituteInPlace setup.py \ 37 --replace "'setuptools_scm<6.0'" "'setuptools_scm'" 38 ''; 39 40 pythonImportsCheck = [ 41 "logfury" 42 ]; 43 44 meta = with lib; { 45 description = "Python module that allows for responsible, low-boilerplate logging of method calls"; 46 homepage = "https://github.com/ppolewicz/logfury"; 47 license = licenses.bsd3; 48 maintainers = with maintainers; [ jwiegley ]; 49 }; 50}