depot/third_party/nixpkgs/pkgs/development/python-modules/hdate/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

52 lines
994 B
Nix

{
lib,
astral,
buildPythonPackage,
fetchFromGitHub,
pdm-backend,
pytestCheckHook,
pythonOlder,
pytz,
}:
buildPythonPackage rec {
pname = "hdate";
version = "0.10.11";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "py-libhdate";
repo = "py-libhdate";
rev = "refs/tags/v${version}";
hash = "sha256-HmdXTvtNiIE2XPFhqs7WpcceEQU7F7RsLFp6/+63yDw=";
};
pythonRelaxDeps = [
"astral"
];
build-system = [
pdm-backend
];
dependencies = [
astral
pytz
];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests" ];
pythonImportsCheck = [ "hdate" ];
meta = with lib; {
description = "Python module for Jewish/Hebrew date and Zmanim";
homepage = "https://github.com/py-libhdate/py-libhdate";
changelog = "https://github.com/py-libhdate/py-libhdate/releases/tag/v${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fab ];
};
}