From 2f6f50e8e711bf03fe707372f4d91b3353448ceb Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Wed, 28 Jun 2023 15:22:24 +0200 Subject: [PATCH] python3Packages.bottombar: init at 1.0 --- .../python-modules/bottombar/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/bottombar/default.nix diff --git a/pkgs/development/python-modules/bottombar/default.nix b/pkgs/development/python-modules/bottombar/default.nix new file mode 100644 index 000000000000..e3e9bb38cc11 --- /dev/null +++ b/pkgs/development/python-modules/bottombar/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 05d7bde590a0..36d5695f9eb4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1459,6 +1459,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; };