My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/watermark/default.nix

38 lines
847 B

{ lib
, fetchFromGitHub
, buildPythonPackage
, importlib-metadata
, ipython
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "watermark";
version = "2.3.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rasbt";
repo = pname;
rev = "v${version}";
sha256 = "1kl9yn1pkl84d3lcz7bvphqkydsgs0p5k0ja0msy3hrxxfzdzd16";
};
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 ];
};
}