summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/docopt-subcommands/default.nix
blob: 1ee538957aace794b6234f66687af104147829ab (plain)
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
35
36
37
38
39
40
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  docopt,
  pytestCheckHook,
  hypothesis,
}:

buildPythonPackage {
  pname = "docopt-subcommands";
  version = "4.0.0-unstable-2020-01-06";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "abingham";
    repo = "docopt-subcommands";
    rev = "5693cbac24701c53e55fa182c1d563736e6a0557"; # no tags
    hash = "sha256-bNFmRMzyC9BQB/J0ACqYxkS7lHG4CWd5/by7QgCopFo=";
  };

  build-system = [ setuptools ];

  dependencies = [ docopt ];

  pythonImportsCheck = [ "docopt_subcommands" ];

  nativeCheckInputs = [
    pytestCheckHook
    hypothesis
  ];

  meta = {
    description = "Create subcommand-based CLI programs with docopt";
    homepage = "https://github.com/abingham/docopt-subcommands";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
}