Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / convertdate / default.nix
blob39a935e5e8501e980e48061c26a3ec8028d00926
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pymeeus
5 , pytz
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "convertdate";
12   version = "2.4.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "fitnr";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-iOHK3UJulXJJR50nhiVgfk3bt+CAtG3BRySJ8DkBuJE=";
22   };
24   propagatedBuildInputs = [
25     pymeeus
26     pytz
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [
34     "convertdate"
35   ];
37   meta = with lib; {
38     description = "Utils for converting between date formats and calculating holidays";
39     mainProgram = "censusgeocode";
40     homepage = "https://github.com/fitnr/convertdate";
41     license = licenses.mit;
42     maintainers = with maintainers; [ jluttine ];
43   };