2020-03-09 16:20:54 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, pymeeus, pytz }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "convertdate";
|
2020-05-23 12:17:38 +02:00
|
|
|
version = "2.2.1";
|
2020-03-09 16:20:54 +01:00
|
|
|
|
|
|
|
# Tests are not available in the PyPI tarball so use GitHub instead.
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fitnr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-23 12:17:38 +02:00
|
|
|
sha256 = "1xgi7x9b9kxm0q51bqnmwdm5lp8vwhx5yk4d1b23r37spz9dbhw5";
|
2020-03-09 16:20:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|