about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/convertdate/default.nix
blob: 39a935e5e8501e980e48061c26a3ec8028d00926 (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
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, fetchFromGitHub
, pymeeus
, pytz
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "convertdate";
  version = "2.4.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "fitnr";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-iOHK3UJulXJJR50nhiVgfk3bt+CAtG3BRySJ8DkBuJE=";
  };

  propagatedBuildInputs = [
    pymeeus
    pytz
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "convertdate"
  ];

  meta = with lib; {
    description = "Utils for converting between date formats and calculating holidays";
    mainProgram = "censusgeocode";
    homepage = "https://github.com/fitnr/convertdate";
    license = licenses.mit;
    maintainers = with maintainers; [ jluttine ];
  };
}