mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
40 lines
810 B
Nix
40 lines
810 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, six
|
|
, archspec
|
|
, pytestCheckHook
|
|
, pytest-xdist
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hpccm";
|
|
version = "22.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NVIDIA";
|
|
repo = "hpc-container-maker";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-dLMbwtvn7HTVVlWHAzXU19ERdJxytf9NlnqMXW6ShKI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ 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";
|
|
license = licenses.asl20;
|
|
platforms = platforms.x86;
|
|
maintainers = with maintainers; [ atila ];
|
|
};
|
|
}
|