0ed64561b0
It requires typing_extensions not only as test dependency but also as runtime dependency, see: https://github.com/Salamek/cron-descriptor/blob/d1bc211c5be4ceb92b24126aa24f92d641227260/cron_descriptor/ExpressionDescriptor.py#L29
38 lines
876 B
Nix
38 lines
876 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cron-descriptor";
|
|
version = "2.0.6";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Salamek";
|
|
repo = "cron-descriptor";
|
|
tag = version;
|
|
hash = "sha256-f7TQ3wvcHrzefZowUvxl1T0LCGeCnvpPI/IZn4XcDa4=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "cron_descriptor" ];
|
|
|
|
meta = {
|
|
description = "Library that converts cron expressions into human readable strings";
|
|
homepage = "https://github.com/Salamek/cron-descriptor";
|
|
changelog = "https://github.com/Salamek/cron-descriptor/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ phaer ];
|
|
};
|
|
}
|