1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, importlib-metadata 5, ipython 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "watermark"; 12 version = "2.4.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "rasbt"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-4/1Y7cdh1tF33jgPrqdxCGPcRnnxx+Wf8lyztF54Ck0="; 22 }; 23 24 propagatedBuildInputs = [ 25 ipython 26 ] ++ lib.optionals (pythonOlder "3.8") [ 27 importlib-metadata 28 ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 ]; 33 34 pythonImportsCheck = [ 35 "watermark" 36 ]; 37 38 meta = with lib; { 39 description = "IPython extension for printing date and timestamps, version numbers, and hardware information"; 40 homepage = "https://github.com/rasbt/watermark"; 41 license = licenses.bsd3; 42 maintainers = with maintainers; [ nphilou ]; 43 }; 44}