about summary refs log tree commit diff
path: root/pkgs/development/python-modules/click-datetime/default.nix
blob: 2203bfb829637fb686fc77077c53310a6a3b0127 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  click,
}:

buildPythonPackage rec {
  pname = "click-datetime";
  version = "0.2.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "click-contrib";
    repo = pname;
    rev = version;
    sha256 = "1yxagk4wd2h77nxml19bn2y26fv2xw2n9g981ls8mjy0g51ms3gh";
  };

  propagatedBuildInputs = [ click ];

  # no tests
  doCheck = false;

  pythonImportsCheck = [ "click_datetime" ];

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