39 lines
821 B
Nix
39 lines
821 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchPypi,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonPackage rec {
|
|
pname = "polygon-cli";
|
|
version = "1.1.11";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gEz3kcXbXj9dXnMCx0Q8TjCQemXvJne9EwFsPt14xV4=";
|
|
};
|
|
|
|
build-system = with python3.pkgs; [ setuptools ];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
requests
|
|
prettytable
|
|
colorama
|
|
pyyaml
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "polygon_cli" ];
|
|
|
|
meta = {
|
|
description = "Command-line tool for polygon.codeforces.com";
|
|
mainProgram = "polygon-cli";
|
|
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 ];
|
|
};
|
|
}
|