mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-07 05:43:41 +00:00
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
astral,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hypothesis,
|
|
num2words,
|
|
pdm-backend,
|
|
pytest-timeout,
|
|
pytest-xdist,
|
|
pytestCheckHook,
|
|
syrupy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hdate";
|
|
version = "1.2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "py-libhdate";
|
|
repo = "py-libhdate";
|
|
tag = "v${version}";
|
|
hash = "sha256-6CCaHnpZEU7krLzkRKRF4Iui7Vd7AOfIn1fTzIdxPtw=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"astral"
|
|
];
|
|
|
|
build-system = [
|
|
pdm-backend
|
|
];
|
|
|
|
dependencies = [
|
|
num2words
|
|
];
|
|
|
|
optional-dependencies = {
|
|
astral = [ astral ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytest-timeout
|
|
pytest-xdist
|
|
pytestCheckHook
|
|
syrupy
|
|
];
|
|
|
|
enabledTestPaths = [ "tests" ];
|
|
|
|
pythonImportsCheck = [ "hdate" ];
|
|
|
|
meta = {
|
|
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/blob/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|