diff --git a/pkgs/development/python-modules/hpccm/default.nix b/pkgs/development/python-modules/hpccm/default.nix new file mode 100644 index 00000000000..b0c26bae973 --- /dev/null +++ b/pkgs/development/python-modules/hpccm/default.nix @@ -0,0 +1,39 @@ +{ lib +, fetchFromGitHub +, buildPythonPackage +, six +, archspec +, pytestCheckHook +, pytest-xdist +}: + +buildPythonPackage rec { + pname = "hpccm"; + version = "22.5.0"; + + src = fetchFromGitHub { + owner = "NVIDIA"; + repo = "hpc-container-maker"; + rev = "v${version}"; + sha256 = "sha256-zR5+X9BKaUvLPQ05FnfU817esgxVqP8n+wfdWy20BN4="; + }; + + propagatedBuildInputs = [ six archspec ]; + checkInputs = [ pytestCheckHook pytest-xdist ]; + + disabledTests = [ + # tests require git + "test_commit" + "test_tag" + ]; + + pythonImportsCheck = [ "hpccm" ]; + + meta = with lib; { + description = "HPC Container Maker"; + homepage = "https://github.com/NVIDIA/hpc-container-maker"; + license = licenses.asl20; + platforms = platforms.x86; + maintainers = with maintainers; [ atila ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 976a93dd3ce..9565de7ff58 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6996,6 +6996,8 @@ with pkgs; hotspot = libsForQt5.callPackage ../development/tools/analysis/hotspot { }; + hpccm = with python3Packages; toPythonApplication hpccm; + hping = callPackage ../tools/networking/hping { }; hqplayer-desktop = libsForQt5.callPackage ../applications/audio/hqplayer-desktop { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 393782873e9..a63c3a70b46 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4011,6 +4011,8 @@ in { hpack = callPackage ../development/python-modules/hpack { }; + hpccm = callPackage ../development/python-modules/hpccm { }; + hsaudiotag3k = callPackage ../development/python-modules/hsaudiotag3k { }; hsluv = callPackage ../development/python-modules/hsluv { };