diff options
Diffstat (limited to 'pkgs/tools/networking/polygon-cli/default.nix')
-rw-r--r-- | pkgs/tools/networking/polygon-cli/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/networking/polygon-cli/default.nix b/pkgs/tools/networking/polygon-cli/default.nix new file mode 100644 index 0000000000000..75c80bd12b7d6 --- /dev/null +++ b/pkgs/tools/networking/polygon-cli/default.nix @@ -0,0 +1,33 @@ +{ lib +, python3 +, fetchPypi +}: + +python3.pkgs.buildPythonPackage rec { + pname = "polygon-cli"; + version = "1.1.11"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-gEz3kcXbXj9dXnMCx0Q8TjCQemXvJne9EwFsPt14xV4="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + setuptools + requests + prettytable + colorama + pyyaml + ]; + + doCheck = false; + + meta = { + description = "Command-line tool for polygon.codeforces.com"; + homepage = "https://github.com/kunyavskiy/polygon-cli"; + changelog = "https://github.com/kunyavskiy/polygon-cli/releases/tag/${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ khaser ]; + }; +} |