pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / po / poethepoet / package.nix
blob8179b9c7e7d00ad6655ab17df2942f8423c0a5c1
1 { lib
2 , python3
3 , fetchFromGitHub
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "poethepoet";
8   version = "0.28.0";
9   pyproject = true;
11   src = fetchFromGitHub {
12     owner = "nat-n";
13     repo = "poethepoet";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-um17UHFLX7zLQXLWbYnEnaLUwMgFSxdGt85fjMBEhjQ=";
16   };
18   nativeBuildInputs = [
19     python3.pkgs.poetry-core
20   ];
22   propagatedBuildInputs = with python3.pkgs; [
23     pastel
24     tomli
25   ];
27   optional-dependencies = with python3.pkgs; {
28     poetry_plugin = [
29       poetry
30     ];
31   };
33   pythonImportsCheck = [ "poethepoet" ];
35   meta = with lib; {
36     description = "Task runner that works well with poetry";
37     homepage = "https://github.com/nat-n/poethepoet";
38     changelog = "https://github.com/nat-n/poethepoet/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
39     license = licenses.mit;
40     maintainers = with maintainers; [ figsoda ];
41     mainProgram = "poe";
42   };