Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / watermark / default.nix
blobdaac4416fc088252324b9760b11728d4fc16f1cb
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , importlib-metadata
5 , ipython
6 , py3nvml
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
12 buildPythonPackage rec {
13   pname = "watermark";
14   version = "2.4.0";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "rasbt";
21     repo = "watermark";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-4/1Y7cdh1tF33jgPrqdxCGPcRnnxx+Wf8lyztF54Ck0=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     ipython
32     importlib-metadata
33   ];
35   passthru.optional-dependencies = {
36     gpu = [
37       py3nvml
38     ];
39   };
41   nativeCheckInputs =  [
42     pytestCheckHook
43   ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
45   pythonImportsCheck = [
46     "watermark"
47   ];
49   meta = with lib; {
50     description = "IPython extension for printing date and timestamps, version numbers, and hardware information";
51     homepage = "https://github.com/rasbt/watermark";
52     changelog = "https://github.com/rasbt/watermark/releases/tag/v${version}";
53     license = licenses.bsd3;
54     maintainers = with maintainers; [ nphilou ];
55   };