depot/third_party/nixpkgs/pkgs/development/python-modules/oncalendar/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

29 lines
639 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "oncalendar";
version = "1.1";
src = fetchFromGitHub {
owner = "cuu508";
repo = "oncalendar";
rev = "refs/tags/v${version}";
hash = "sha256-MPKzC2QYA3tWxg19URKheAbPaiS0jXP96xR0Hyl58V0=";
};
nativeBuildInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "oncalendar" ];
meta = with lib; {
description = "Systemd OnCalendar expression parser and evaluator";
homepage = "https://github.com/cuu508/oncalendar";
license = licenses.bsd3;
maintainers = with maintainers; [ phaer ];
};
}