Merge pull request #256986 from figsoda/poe

poethepoet: init at 0.23.0
This commit is contained in:
figsoda 2023-09-26 10:22:16 -04:00 committed by GitHub
commit 346ad32ac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";
};
}