summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/click-datetime/default.nix
blob: 5569bfddbb29fd993a0e03d73e26dc76b624d703 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  poetry-core,
  click,
}:

buildPythonPackage rec {
  pname = "click-datetime";
  version = "0.4.0";
  pyproject = true;

  src = fetchPypi {
    pname = "click_datetime";
    inherit version;
    hash = "sha256-nzXtP6sT9VMiHOjFqJXlGF1zYJk8Ud1/hii5tPY2kws=";
  };

  build-system = [ poetry-core ];

  pythonRemoveDeps = [ "wheel" ];

  dependencies = [ click ];

  # no tests
  doCheck = false;

  pythonImportsCheck = [ "click_datetime" ];

  meta = {
    description = "Datetime type support for click";
    homepage = "https://github.com/click-contrib/click-datetime";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ hexa ];
  };
}