1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 poetry-core,
6 click,
7}:
8
9buildPythonPackage rec {
10 pname = "click-datetime";
11 version = "0.4.0";
12 pyproject = true;
13
14 src = fetchPypi {
15 pname = "click_datetime";
16 inherit version;
17 hash = "sha256-nzXtP6sT9VMiHOjFqJXlGF1zYJk8Ud1/hii5tPY2kws=";
18 };
19
20 build-system = [ poetry-core ];
21
22 pythonRemoveDeps = [ "wheel" ];
23
24 dependencies = [ click ];
25
26 # no tests
27 doCheck = false;
28
29 pythonImportsCheck = [ "click_datetime" ];
30
31 meta = with lib; {
32 description = "Datetime type support for click";
33 homepage = "https://github.com/click-contrib/click-datetime";
34 license = licenses.mit;
35 maintainers = with maintainers; [ hexa ];
36 };
37}