1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 click,
6}:
7
8buildPythonPackage rec {
9 pname = "click-datetime";
10 version = "0.2.0";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "click-contrib";
15 repo = pname;
16 rev = version;
17 sha256 = "1yxagk4wd2h77nxml19bn2y26fv2xw2n9g981ls8mjy0g51ms3gh";
18 };
19
20 propagatedBuildInputs = [ click ];
21
22 # no tests
23 doCheck = false;
24
25 pythonImportsCheck = [ "click_datetime" ];
26
27 meta = with lib; {
28 description = "Datetime type support for click";
29 homepage = "https://github.com/click-contrib/click-datetime";
30 license = licenses.mit;
31 maintainers = with maintainers; [ hexa ];
32 };
33}