feat(users/Profpatsch/sync-abfall-ics-aichach-friedberg): init
A small script that fetches calendar files for our local trash provider. First step towards integrating ics files into my calendar setup. Change-Id: I0e8915a00c19349104cb6256e9dc87c17620fcae Reviewed-on: https://cl.tvl.fyi/c/depot/+/5883 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de> Autosubmit: Profpatsch <mail@profpatsch.de>
This commit is contained in:
parent
544d72189c
commit
4f0750cf90
3 changed files with 161 additions and 4 deletions
|
|
@ -15,12 +15,18 @@ let
|
|||
string;
|
||||
Libraries = defun [ (attrs any) (list drv) ];
|
||||
|
||||
pythonPackages = pkgs.python310Packages;
|
||||
python = pythonPackages.python;
|
||||
|
||||
python3 =
|
||||
{ name
|
||||
, libraries ? (_: [ ])
|
||||
, flakeIgnore ? [ ]
|
||||
}: pkgs.writers.writePython3 name {
|
||||
libraries = Libraries libraries pkgs.python3Packages;
|
||||
}:
|
||||
let
|
||||
in
|
||||
pkgs.writers.makePythonWriter python pythonPackages name {
|
||||
libraries = Libraries libraries pythonPackages;
|
||||
flakeIgnore =
|
||||
let
|
||||
ignoreTheseErrors = [
|
||||
|
|
@ -37,6 +43,10 @@ let
|
|||
# … between functions
|
||||
"E302"
|
||||
"E305"
|
||||
# … if there’s too many of them
|
||||
"E303"
|
||||
# or lines that are too long
|
||||
"E501"
|
||||
];
|
||||
in
|
||||
list FlakeError (ignoreTheseErrors ++ flakeIgnore);
|
||||
|
|
@ -80,10 +90,10 @@ let
|
|||
]
|
||||
];
|
||||
in
|
||||
pkgs.python3Packages.buildPythonPackage {
|
||||
pythonPackages.buildPythonPackage {
|
||||
inherit name;
|
||||
src = srcTree;
|
||||
propagatedBuildInputs = libraries pkgs.python3Packages;
|
||||
propagatedBuildInputs = libraries pythonPackages;
|
||||
doCheck = false;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue