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

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

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

  propagatedBuildInputs = [ pymeeus pytz ];

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