Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing non codespaces build of python packages #12

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,21 @@ rec {
inherit adiak;
inherit maintainers;
};
caliper-reader = pkgs.callPackage ./pkgs/hpc/caliper-reader {
inherit caliper;
inherit maintainers;
};
conduit = pkgs.callPackage ./pkgs/hpc/conduit {
inherit maintainers;
};
conveyorlc = pkgs.callPackage ./pkgs/hpc/conveyorlc {
inherit conduit;
inherit maintainers;
};
hatchet = pkgs.callPackage ./pkgs/hpc/hatchet {
inherit caliper-reader;
inherit maintainers;
};
flux-core = pkgs.callPackage ./pkgs/hpc/flux-core {
inherit maintainers;
};
Expand Down
34 changes: 34 additions & 0 deletions pkgs/hpc/caliper-reader/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib
, stdenv
, python3Packages
, maintainers
, caliper
}:

# TODO maybe should not build this from pypi

python3Packages.buildPythonApplication rec {
pname = "caliper-reader";
version = "0.3.0";

src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "sha256-/AHf9SewztBRrcK9NeUIV7OfARRyZJwkGIStmhbZVxc=";
};

propagatedBuildInputs = [ caliper ];
pythonImportsCheck = [
"caliperreader"
];

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

meta = with lib; {
description = "caliper-reader: A Python reader for Caliper files";
homepage = "https://github.com/LLNL/Caliper";
license = licenses.bsd3;
maintainers = [ maintainers.vsoch ];
};

}
46 changes: 46 additions & 0 deletions pkgs/hpc/hatchet/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ lib
, stdenv
, pkgs
, maintainers
, fetchurl
, caliper-reader
}:

pkgs.python3Packages.buildPythonApplication rec {
pname = "hatchet";
version = "2022.2.2";

src = fetchurl {
url = "https://github.com/LLNL/hatchet/archive/v${version}.tar.gz";
sha256 = "sha256-5dQJH45hcBAIjitS9tH4AOwpp4YcLy6WRktCMXD719Y=";
};

nativeBuildInputs = [
pkgs.python3Packages.cython
pkgs.python3Packages.setuptools
];

propagatedBuildInputs = [
pkgs.python3Packages.multiprocess
pkgs.python3Packages.matplotlib
pkgs.python3Packages.pandas
pkgs.python3Packages.numpy
pkgs.python3Packages.pyyaml
pkgs.python3Packages.pydot
caliper-reader
];

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

pythonImportsCheck = [
"hatchet"
];

meta = with lib; {
description = "Graph-indexed Pandas DataFrames for analyzing hierarchical performance data";
homepage = "https://github.com/LLNL/hatchet";
license = licenses.mit;
maintainers = [ maintainers.vsoch ];
};
}