755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
30 lines
639 B
Nix
30 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 ];
|
|
};
|
|
}
|