biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / convertdate / default.nix
blobe4c2e9bd8ec0a0665fc734a1fade307f4d4d6553
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pymeeus,
6   pytz,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "convertdate";
13   version = "2.4.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "fitnr";
20     repo = pname;
21     rev = "v${version}";
22     hash = "sha256-iOHK3UJulXJJR50nhiVgfk3bt+CAtG3BRySJ8DkBuJE=";
23   };
25   propagatedBuildInputs = [
26     pymeeus
27     pytz
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   pythonImportsCheck = [ "convertdate" ];
34   meta = with lib; {
35     description = "Utils for converting between date formats and calculating holidays";
36     mainProgram = "censusgeocode";
37     homepage = "https://github.com/fitnr/convertdate";
38     license = licenses.mit;
39     maintainers = with maintainers; [ jluttine ];
40   };