2021-02-03 23:22:29 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pymeeus
|
|
|
|
, pytz
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-03-09 16:20:54 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "convertdate";
|
2021-02-03 23:22:29 +01:00
|
|
|
version = "2.3.0";
|
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}";
|
2021-02-03 23:22:29 +01:00
|
|
|
sha256 = "17j188zlp46zmq8qyy4z4f9v25l3zibkwzj8wp4fxqgimjnfj2nr";
|
2020-03-09 16:20:54 +01:00
|
|
|
};
|
|
|
|
|
2021-02-03 23:22:29 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pymeeus
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-03-09 16:20:54 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-09 16:20:54 +01:00
|
|
|
homepage = "https://github.com/fitnr/convertdate";
|
|
|
|
description = "Utils for converting between date formats and calculating holidays";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|