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