Skip to content

Commit

Permalink
Merge pull request #240337 from helsinki-systems/add/bottombar
Browse files Browse the repository at this point in the history
python3Packages.bottombar: init at 1.0
  • Loading branch information
SuperSandro2000 authored Jul 5, 2023
2 parents 5e3022f + 8a05296 commit 098659c
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 4 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3282,6 +3282,12 @@
name = "Changsheng Wu";
githubId = 2083950;
};
conni2461 = {
email = "[email protected]";
github = "Conni2461";
name = "Simon Hauser";
githubId = 15233006;
};
connorbaker = {
email = "[email protected]";
matrix = "@connorbaker:matrix.org";
Expand Down
37 changes: 37 additions & 0 deletions pkgs/development/python-modules/bottombar/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
}:

buildPythonPackage rec {
pname = "bottombar";
version = "1.0";
format = "pyproject";

src = fetchFromGitHub {
owner = "evalf";
repo = "bottombar";
rev = "refs/tags/v${version}";
hash = "sha256-/3m34HcYmmEf92H3938dYV1Q6k44KaCb9TDx9nDNPnM=";
};

nativeBuildInputs = [
flit-core
];

# The package only has some "interactive" tests where a user must check for
# the correct output and hit enter after every check
doCheck = false;
pythonImportsCheck = [
"bottombar"
];

meta = with lib; {
description = "Context manager that prints a status line at the bottom of a terminal window";
homepage = "https://github.com/evalf/bottombar";
changelog = "https://github.com/evalf/bottombar/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ conni2461 ];
};
}
15 changes: 11 additions & 4 deletions pkgs/development/python-modules/nutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,35 @@
, numpy
, treelog
, stringly
, flit-core
, bottombar
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
pname = "nutils";
version = "7.2";
format = "setuptools";
version = "7.3";
format = "pyproject";

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "evalf";
repo = "nutils";
rev = "refs/tags/v${version}";
hash = "sha256-KCvUBE3qbX6v1HahBj4/jjM8ujvFGtWNuH1D+bTHrQ0=";
hash = "sha256-3VtQFnR8vihxoIyRkbE1a1Rs8Np3/79PWNKReTBZDg8=";
};

nativeBuildInputs = [
flit-core
];

propagatedBuildInputs = [
numpy
treelog
stringly
bottombar
];

nativeCheckInputs = [
Expand All @@ -44,9 +51,9 @@ buildPythonPackage rec {

meta = with lib; {
description = "Numerical Utilities for Finite Element Analysis";
changelog = "https://github.com/evalf/nutils/releases/tag/v${version}";
homepage = "https://www.nutils.org/";
license = licenses.mit;
broken = stdenv.hostPlatform.isAarch64;
maintainers = with maintainers; [ Scriptkiddi ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1467,6 +1467,8 @@ self: super: with self; {

boschshcpy = callPackage ../development/python-modules/boschshcpy { };

bottombar = callPackage ../development/python-modules/bottombar { };

boost-histogram = callPackage ../development/python-modules/boost-histogram {
inherit (pkgs) boost;
};
Expand Down

0 comments on commit 098659c

Please sign in to comment.