diff --git a/pkgs/development/python-modules/watermark/default.nix b/pkgs/development/python-modules/watermark/default.nix new file mode 100644 index 000000000000..6f187b4f32ce --- /dev/null +++ b/pkgs/development/python-modules/watermark/default.nix @@ -0,0 +1,38 @@ +{ lib +, fetchFromGitHub +, buildPythonPackage +, importlib-metadata +, ipython +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "watermark"; + version = "2.2.0"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "rasbt"; + repo = pname; + rev = "d3553b68dd30ac5b0951a6fae6083236e4c7f3bd"; + sha256 = "0w2mzi344x1mrv8d9jca67bhig34jissr9sqrk68gpg5n10alblb"; + }; + + 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 ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ed8e1846fff2..b6d07f926e1f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9776,6 +9776,8 @@ in { waterfurnace = callPackage ../development/python-modules/waterfurnace { }; + watermark = callPackage ../development/python-modules/watermark { }; + wavedrom = callPackage ../development/python-modules/wavedrom { }; wazeroutecalculator = callPackage ../development/python-modules/wazeroutecalculator { };