summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiajie Chen <c@jia.je>2022-11-01 20:58:20 +0800
committerMatthias Beyer <mail@beyermatthias.de>2023-01-09 15:20:53 +0100
commitf012b316faba914b3139c090bd3ee4f7e3cc1ed8 (patch)
tree37f8c36a31629f718c8751debf29d497cdb921fb
parent356f88f80143ac3465b159a0db39ad38ea31abe7 (diff)
python3Packages.lightning-utilities: init at 0.3.0
-rw-r--r--pkgs/development/python-modules/lightning-utilities/default.nix30
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/lightning-utilities/default.nix b/pkgs/development/python-modules/lightning-utilities/default.nix
new file mode 100644
index 000000000000..ac7ac802aeee
--- /dev/null
+++ b/pkgs/development/python-modules/lightning-utilities/default.nix
@@ -0,0 +1,30 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, fire
+}:
+
+buildPythonPackage rec {
+ pname = "lightning-utilities";
+ version = "0.3.0";
+
+ src = fetchFromGitHub {
+ owner = "Lightning-AI";
+ repo = "utilities";
+ rev = "v${version}";
+ hash = "sha256-SL27X4pykHfTFub6Lu2imZ34T8syfaRfRhfFKUaeIy8=";
+ };
+
+ propagatedBuildInputs = [
+ fire
+ ];
+
+ pythonImportsCheck = [ "lightning_utilities" ];
+
+ meta = with lib; {
+ description = "Common Python utilities and GitHub Actions in Lightning Ecosystem";
+ homepage = "https://pytorch-lightning.readthedocs.io";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ jiegec ];
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 2ad7b56f314f..f7e95066a029 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -5359,6 +5359,8 @@ self: super: with self; {
lightning = callPackage ../development/python-modules/lightning { };
+ lightning-utilities = callPackage ../development/python-modules/lightning-utilities { };
+
lightparam = callPackage ../development/python-modules/lightparam { };
lightwave = callPackage ../development/python-modules/lightwave { };