From d20d9767d059d695573dd3a3281eec5872c302cd Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 23 Sep 2023 20:08:21 -0400 Subject: [PATCH] poethepoet: init at 0.23.0 https://github.com/nat-n/poethepoet --- pkgs/by-name/po/poethepoet/package.nix | 43 ++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/po/poethepoet/package.nix diff --git a/pkgs/by-name/po/poethepoet/package.nix b/pkgs/by-name/po/poethepoet/package.nix new file mode 100644 index 000000000000..b121cddf64e2 --- /dev/null +++ b/pkgs/by-name/po/poethepoet/package.nix @@ -0,0 +1,43 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "poethepoet"; + version = "0.23.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "nat-n"; + repo = "poethepoet"; + rev = "v${version}"; + hash = "sha256-bT+lRPqR7mxfZSlOyhqCkpBE0etiLh0wkg62nyK751Q="; + }; + + nativeBuildInputs = [ + python3.pkgs.poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + pastel + tomli + ]; + + passthru.optional-dependencies = with python3.pkgs; { + poetry_plugin = [ + poetry + ]; + }; + + pythonImportsCheck = [ "poethepoet" ]; + + meta = with lib; { + description = "A task runner that works well with poetry"; + homepage = "https://github.com/nat-n/poethepoet"; + changelog = "https://github.com/nat-n/poethepoet/releases/tag/${src.rev}"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "poe"; + }; +}