depot/third_party/nixpkgs/pkgs/development/python-modules/hpccm/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

56 lines
1.1 KiB
Nix

{
lib,
archspec,
buildPythonPackage,
fetchFromGitHub,
pytest-xdist,
pytestCheckHook,
pythonOlder,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "hpccm";
version = "23.11.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "NVIDIA";
repo = "hpc-container-maker";
rev = "refs/tags/v${version}";
hash = "sha256-uB2+1Nc+SgPzB5hJI1L6yD8gn0hGOkIZF6rejq4rYg8=";
};
build-system = [ setuptools ];
dependencies = [
six
archspec
];
nativeCheckInputs = [
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";
changelog = "https://github.com/NVIDIA/hpc-container-maker/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ atila ];
mainProgram = "hpccm";
platforms = platforms.x86;
};
}