2021-02-03 22:22:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pymeeus
|
|
|
|
, pytz
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-03-09 15:20:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "convertdate";
|
2021-02-03 22:22:29 +00:00
|
|
|
version = "2.3.0";
|
2020-03-09 15:20:54 +00:00
|
|
|
|
|
|
|
# Tests are not available in the PyPI tarball so use GitHub instead.
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fitnr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-03 22:22:29 +00:00
|
|
|
sha256 = "17j188zlp46zmq8qyy4z4f9v25l3zibkwzj8wp4fxqgimjnfj2nr";
|
2020-03-09 15:20:54 +00:00
|
|
|
};
|
|
|
|
|
2021-02-03 22:22:29 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pymeeus
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-03-09 15:20:54 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-09 15:20:54 +00:00
|
|
|
homepage = "https://github.com/fitnr/convertdate";
|
|
|
|
description = "Utils for converting between date formats and calculating holidays";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|