nixpkgs/pkgs/by-name/po/poethepoet/package.nix
2024-05-04 07:56:06 +00:00

44 lines
931 B
Nix

{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "poethepoet";
version = "0.26.1";
pyproject = true;
src = fetchFromGitHub {
owner = "nat-n";
repo = "poethepoet";
rev = "refs/tags/v${version}";
hash = "sha256-7mRzWxMhDNUc+eY9uEszt/qQUUJhlgJqadCL+Z7QzWo=";
};
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";
};
}