From 35e29813a6f73c09214587c1cfc8f6df9bbcb61e Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 21 Jul 2021 20:31:47 +0200 Subject: [PATCH 1/3] python3Packages.prefixed: init at 0.3.2 --- flake.nix | 2 ++ python-modules/prefixed/default.nix | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 python-modules/prefixed/default.nix diff --git a/flake.nix b/flake.nix index 021a878..5f3a87b 100644 --- a/flake.nix +++ b/flake.nix @@ -20,6 +20,8 @@ packageOverrides = final: prev: { deezer-py = callPythonPackage ./python-modules/deezer-py { }; + + prefixed = callPythonPackage ./python-modules/prefixed { }; }; }; python3Packages = prev.recurseIntoAttrs final.python3.pkgs; diff --git a/python-modules/prefixed/default.nix b/python-modules/prefixed/default.nix new file mode 100644 index 0000000..77a6ec8 --- /dev/null +++ b/python-modules/prefixed/default.nix @@ -0,0 +1,22 @@ +{ lib +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "prefixed"; + version = "0.3.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "0af0sanqdw7ymy9rxhw7cd0q8yqcjgd4f23n9gfld0zslmxjfj6a"; + }; + + meta = with lib; { + description = "A prefixed alternative numeric library"; + homepage = "https://github.com/Rockhopper-Technologies/prefixed"; + license = licenses.mpl20; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +} From 018cd5e5fbc7dfb68a864ecbdfe8c769f8384396 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 21 Jul 2021 20:32:35 +0200 Subject: [PATCH 2/3] python3Packages.enlighten: init at 1.10.1 --- flake.nix | 2 ++ python-modules/enlighten/default.nix | 29 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 python-modules/enlighten/default.nix diff --git a/flake.nix b/flake.nix index 5f3a87b..e9d7970 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,8 @@ { deezer-py = callPythonPackage ./python-modules/deezer-py { }; + enlighten = callPythonPackage ./python-modules/enlighten { }; + prefixed = callPythonPackage ./python-modules/prefixed { }; }; }; diff --git a/python-modules/enlighten/default.nix b/python-modules/enlighten/default.nix new file mode 100644 index 0000000..d9c27bc --- /dev/null +++ b/python-modules/enlighten/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonPackage +, fetchPypi +, blessed +, prefixed +}: + +buildPythonPackage rec { + pname = "enlighten"; + version = "1.10.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1159iqivln12sfbf0bc2iyaf8ic7nj1694nnsp7fsjinhrjr349k"; + }; + + propagatedBuildInputs = [ + blessed + prefixed + ]; + + meta = with lib; { + description = "A progress Bar for Python Console Apps"; + homepage = "https://python-enlighten.readthedocs.io"; + license = licenses.mpl20; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +} From 9a7a4d74225b623d562c0c3747b4f6ebe8d553dd Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 21 Jul 2021 20:32:47 +0200 Subject: [PATCH 3/3] nsz: init at 4.0.0 --- flake.nix | 3 +++ nsz/default.nix | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 nsz/default.nix diff --git a/flake.nix b/flake.nix index e9d7970..100ac8a 100644 --- a/flake.nix +++ b/flake.nix @@ -38,6 +38,8 @@ pitchcontrol = callPackage ./mpv-scripts/pitchcontrol { }; }; + nsz = callPythonPackage ./nsz { }; + oha = callPackage ./oha { }; snownews = callPackage ./snownews { }; @@ -79,6 +81,7 @@ cyanrip deemix face_morpher + nsz oha snownews textidote diff --git a/nsz/default.nix b/nsz/default.nix new file mode 100644 index 0000000..5248357 --- /dev/null +++ b/nsz/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pycryptodome +, zstandard +, enlighten +}: + +buildPythonPackage rec { + pname = "nsz"; + version = "4.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1gckszvkjklrslidpfidbzcigpwwj4s0chrnrg16wvh3r93aiaci"; + }; + + propagatedBuildInputs = [ + pycryptodome + zstandard + enlighten + ]; + + doCheck = false; # requires keys + + meta = with lib; { + description = "A homebrew compatible NSP/XCI compressor/decompressor"; + homepage = "https://github.com/nicoboss/nsz"; + license = licenses.mit; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}