Skip to content

Commit

Permalink
Add/singularity hpc (#3)
Browse files Browse the repository at this point in the history
* add/shpc
Signed-off-by: Vanessasaurus <814322+vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Dec 9, 2022
1 parent a95a92f commit 6fa5624
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
4 changes: 4 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ rec {
spython = pkgs.callPackage ./pkgs/python/spython {
inherit maintainers;
};
singularity-hpc = pkgs.callPackage ./pkgs/python/singularity-hpc {
inherit spython;
inherit maintainers;
};
}
41 changes: 41 additions & 0 deletions pkgs/python/singularity-hpc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ lib
, stdenv
, python3Packages
, maintainers
, spython
}:

python3Packages.buildPythonApplication rec {
pname = "singularity-hpc";
version = "0.1.17";

src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "sha256-ZZjkvHvePv4+PYo9tsUmGPNHPn/BFoL3T7XwcDpe2hQ=";
};

pythonImportsCheck = [
"shpc"
];
propagatedBuildInputs = [
python3Packages.setuptools
python3Packages.pytest
python3Packages.pytest-runner
python3Packages.requests
python3Packages.jinja2
python3Packages.jsonschema
python3Packages.ruamel-yaml
spython
];

# Only support for Python 3
doCheck = !python3Packages.isPy27;

meta = with lib; {
description = "Local filesystem registry for containers (intended for HPC) using Lmod or Environment Modules. Works for users and admins. ";
homepage = "https://github.com/singularityhub/singularity-hpc";
license = licenses.mpl20;
maintainers = [ maintainers.vsoch ];
};

}

0 comments on commit 6fa5624

Please sign in to comment.