Test CI
This commit is contained in:
parent
f4364c6398
commit
4c3b506937
3 changed files with 73 additions and 1 deletions
39
packages/forgejo-report-checks/default.nix
Normal file
39
packages/forgejo-report-checks/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
writers,
|
||||
python3Packages,
|
||||
fetchFromGitea,
|
||||
...
|
||||
}:
|
||||
let
|
||||
pyforgejo = python3Packages.buildPythonPackage rec {
|
||||
pname = "pyforgejo";
|
||||
version = "1.0.4";
|
||||
|
||||
pyproject = true;
|
||||
build-system = [ python3Packages.poetry-core ];
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "harabat";
|
||||
repo = "pyforgejo";
|
||||
rev = "3dba949bea41140a47e4dd422a84a6da9fd394e9";
|
||||
hash = "sha256-qVXlfhKrc7yBnRvL/65bLZFW9fDjC+8FNz7yA6iMPp4=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"httpx"
|
||||
];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
attrs
|
||||
httpx
|
||||
python-dateutil
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyforgejo" ];
|
||||
};
|
||||
in
|
||||
writers.writePython3Bin "report-checks" {
|
||||
libraries = [ pyforgejo ];
|
||||
flakeIgnore = [ "E501" ];
|
||||
} (builtins.readFile ./forgejo-report-checks.py)
|
Loading…
Add table
Add a link
Reference in a new issue