mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
b6ef70c692
Diff: https://github.com/nat-n/poethepoet/compare/v0.23.0...v0.24.0 Changelog: https://github.com/nat-n/poethepoet/releases/tag/v0.24.0
44 lines
921 B
Nix
44 lines
921 B
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "poethepoet";
|
|
version = "0.24.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nat-n";
|
|
repo = "poethepoet";
|
|
rev = "v${version}";
|
|
hash = "sha256-fW457R8DvkHdgNcPatEf1nJNjMYTmliiRHrYyAAoZuo=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|