From c7473749c5cf1dc3035ee1a17634f8c1b72357ad Mon Sep 17 00:00:00 2001 From: linuxissuper Date: Mon, 6 Mar 2023 22:28:23 +0100 Subject: [PATCH] dict.cc.py: init at 3.1.0 --- pkgs/applications/misc/dict-cc-py/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/applications/misc/dict-cc-py/default.nix diff --git a/pkgs/applications/misc/dict-cc-py/default.nix b/pkgs/applications/misc/dict-cc-py/default.nix new file mode 100644 index 000000000000..cbacf1191275 --- /dev/null +++ b/pkgs/applications/misc/dict-cc-py/default.nix @@ -0,0 +1,32 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonPackage rec { + pname = "dict.cc.py"; + version = "3.1.0"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "rbaron"; + repo = "dict.cc.py"; + rev = "a8b469767590fdd15d3aeb0b00e2ae62aa15a918"; + hash = "sha256-wc0WY1pETBdOT3QUaVGsX8YdcnhxLIHrZ2vt2t5LYKU="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + beautifulsoup4 + colorama + requests + ]; + + pythonImportsCheck = [ "dictcc" ]; + + meta = with lib; { + description = "Unofficial command line client for dict.cc"; + homepage = "https://github.com/rbaron/dict.cc.py"; + license = with licenses; [ cc0 ]; + maintainers = with maintainers; [ ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e0eec6b066ff..a58377985ff3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -42258,6 +42258,8 @@ with pkgs; gitrs = callPackage ../tools/misc/gitrs { }; + dict-cc-py = callPackage ../applications/misc/dict-cc-py { }; + wttrbar = callPackage ../applications/misc/wttrbar { }; wpm = callPackage ../applications/misc/wpm { };