2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, importlib-metadata
|
|
|
|
, ipython
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "watermark";
|
2022-01-07 04:07:37 +00:00
|
|
|
version = "2.3.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rasbt";
|
|
|
|
repo = pname;
|
2022-01-07 04:07:37 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1kl9yn1pkl84d3lcz7bvphqkydsgs0p5k0ja0msy3hrxxfzdzd16";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipython
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "watermark" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "IPython extension for printing date and time stamps, version numbers, and hardware information.";
|
|
|
|
homepage = "https://github.com/rasbt/watermark";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ nphilou ];
|
|
|
|
};
|
|
|
|
}
|