fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
41 lines
825 B
Nix
41 lines
825 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pymeeus,
|
|
pytz,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "convertdate";
|
|
version = "2.4.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fitnr";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-iOHK3UJulXJJR50nhiVgfk3bt+CAtG3BRySJ8DkBuJE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pymeeus
|
|
pytz
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "convertdate" ];
|
|
|
|
meta = with lib; {
|
|
description = "Utils for converting between date formats and calculating holidays";
|
|
mainProgram = "censusgeocode";
|
|
homepage = "https://github.com/fitnr/convertdate";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
};
|
|
}
|