summary refs log tree commit diff
path: root/pkgs/development/python-modules/convertdate/default.nix
blob: f28923002f70d30fc62a874482a4d000e8666844 (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
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pymeeus, pytz }:

buildPythonPackage rec {
  pname = "convertdate";
  version = "2.2.1";

  # Tests are not available in the PyPI tarball so use GitHub instead.
  src = fetchFromGitHub {
    owner = "fitnr";
    repo = pname;
    rev = "v${version}";
    sha256 = "1xgi7x9b9kxm0q51bqnmwdm5lp8vwhx5yk4d1b23r37spz9dbhw5";
  };

  propagatedBuildInputs = [ pymeeus pytz ];

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