h5glance: init at 0.9 (#383403)
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
{
|
||||
lib,
|
||||
python3,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "h5glance";
|
||||
version = "0.9";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "European-XFEL";
|
||||
repo = "h5glance";
|
||||
tag = version;
|
||||
hash = "sha256-20gSaNZrH3AeFTGLho6sbWljfqln9SQEVdvEVe/WaYY=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
python3.pkgs.flit-core
|
||||
];
|
||||
|
||||
dependencies = with python3.pkgs; [
|
||||
h5py
|
||||
htmlgen
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
python3.pkgs.pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"h5glance"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Explore HDF5 files in terminal & HTML views";
|
||||
homepage = "https://github.com/European-XFEL/h5glance";
|
||||
changelog = "https://github.com/European-XFEL/h5glance/blob/${src.rev}/CHANGES.rst";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ doronbehar ];
|
||||
mainProgram = "h5glance";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
poetry-core,
|
||||
|
||||
# dependencies
|
||||
typing-extensions,
|
||||
|
||||
# tests
|
||||
unittestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "asserts";
|
||||
version = "0.13.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "srittau";
|
||||
repo = "python-asserts";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-hjTzGCcURI0NH9pgZ6KB0J3tSbgIaneDnWr8zrLVG6M=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
unittestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"asserts"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Stand-alone Assertions for Python";
|
||||
homepage = "https://github.com/srittau/python-asserts";
|
||||
changelog = "https://github.com/srittau/python-asserts/blob/${src.rev}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ doronbehar ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
asserts,
|
||||
mypy,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "htmlgen";
|
||||
version = "2.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "srittau";
|
||||
repo = "python-htmlgen";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-RmJKaaTB+xvsJ+9jM21ZUNVTlr7ebPW785A8OXrpDoY=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
mypy
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
asserts
|
||||
];
|
||||
# From some reason, using unittestCheckHook doesn't work, and the list of
|
||||
# test files have to be used explicitly, and also without the `discover`
|
||||
# argument.
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
python -m unittest test_htmlgen/*.py
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"htmlgen"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Python HTML 5 Generator";
|
||||
homepage = "https://github.com/srittau/python-htmlgen";
|
||||
changelog = "https://github.com/srittau/python-htmlgen/blob/v${version}/NEWS.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ doronbehar ];
|
||||
};
|
||||
}
|
||||
@@ -894,6 +894,8 @@ self: super: with self; {
|
||||
|
||||
assay = callPackage ../development/python-modules/assay { };
|
||||
|
||||
asserts = callPackage ../development/python-modules/asserts { };
|
||||
|
||||
assertpy = callPackage ../development/python-modules/assertpy { };
|
||||
|
||||
asterisk-mbox = callPackage ../development/python-modules/asterisk-mbox { };
|
||||
@@ -6062,6 +6064,8 @@ self: super: with self; {
|
||||
|
||||
htmldate = callPackage ../development/python-modules/htmldate { };
|
||||
|
||||
htmlgen = callPackage ../development/python-modules/htmlgen { };
|
||||
|
||||
htmllistparse = callPackage ../development/python-modules/htmllistparse { };
|
||||
|
||||
htmlmin = callPackage ../development/python-modules/htmlmin { };
|
||||
|
||||
Reference in New Issue
Block a user