mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-09 14:53:47 +00:00
Diff: https://github.com/fitnr/convertdate/compare/v2.4.1...v2.4.1 Changelog: https://github.com/fitnr/convertdate/releases/tag/v2.4.1
43 lines
929 B
Nix
43 lines
929 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pymeeus,
|
|
pytz,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "convertdate";
|
|
version = "2.4.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fitnr";
|
|
repo = "convertdate";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-YgLKUSg95j9rRejkmep+Levy5Rvnl/kXEiXuS7hazbY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
pymeeus
|
|
pytz
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "convertdate" ];
|
|
|
|
meta = {
|
|
description = "Utils for converting between date formats and calculating holidays";
|
|
homepage = "https://github.com/fitnr/convertdate";
|
|
changelog = "https://github.com/fitnr/convertdate/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jluttine ];
|
|
mainProgram = "censusgeocode";
|
|
};
|
|
})
|