From 8dafc691c567a6f0f51a3f3a61aeefa67f4edf0d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 17 Jun 2024 12:51:57 +0200 Subject: [PATCH] python312Packages.dash-bootstrap-components: init at 1.6.0 Bootstrap components for Plotly Dash https://github.com/facultyai/dash-bootstrap-components --- .../dash-bootstrap-components/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/dash-bootstrap-components/default.nix diff --git a/pkgs/development/python-modules/dash-bootstrap-components/default.nix b/pkgs/development/python-modules/dash-bootstrap-components/default.nix new file mode 100644 index 000000000000..9e6cfa1daaea --- /dev/null +++ b/pkgs/development/python-modules/dash-bootstrap-components/default.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + dash, + setuptools, + pythonOlder, +}: + +buildPythonPackage rec { + pname = "dash-bootstrap-components"; + version = "1.6.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "facultyai"; + repo = "dash-bootstrap-components"; + rev = "refs/tags/${version}"; + hash = "sha256-6tx7rOB5FVj44NbTznyZd1Q0HOc8QdxiZOhja5kgpAE="; + }; + + build-system = [ setuptools ]; + + dependencies = [ dash ]; + + # Tests a additional requirements + doCheck = false; + + # Circular import + # pythonImportsCheck = [ "dash_bootstrap_components" ]; + + meta = with lib; { + description = "Bootstrap components for Plotly Dash"; + homepage = "https://github.com/facultyai/dash-bootstrap-components"; + changelog = "https://github.com/facultyai/dash-bootstrap-components/releases/tag/${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 483cb05e6996..56ec06cdfb75 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2728,6 +2728,8 @@ self: super: with self; { dash = callPackage ../development/python-modules/dash { }; + dash-bootstrap-components = callPackage ../development/python-modules/dash-bootstrap-components { }; + dash-core-components = callPackage ../development/python-modules/dash-core-components { }; dash-html-components = callPackage ../development/python-modules/dash-html-components { };