about summary refs log tree commit diff
path: root/pkgs/development/python-modules/click-didyoumean/default.nix
blob: 110855c60a42284416d62ec879ee5baf12105320 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  click,
  pytestCheckHook
}:

buildPythonPackage rec {
  pname = "click-didyoumean";
  version = "0.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "click-contrib";
    repo = "click-didyoumean";
    rev = "refs/tags/v${version}";
    hash = "sha256-C8OrJUfBFiDM/Jnf1iJo8pGEd0tUhar1vu4fVIfGzq8=";
  };

  build-system = [ poetry-core ];

  dependencies = [ click ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = with lib; {
    description = "Enable git-like did-you-mean feature in click";
    homepage = "https://github.com/click-contrib/click-didyoumean";
    license = licenses.mit;
    maintainers = with maintainers; [ mbode ];
  };
}