package: jellyfin plugin repository manager
This commit is contained in:
parent
3184f1f8db
commit
1dedff0c45
1 changed files with 37 additions and 0 deletions
37
package/jprm.nix
Normal file
37
package/jprm.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
let
|
||||||
|
v."1.1.1" = "sha256-PWgZ9K81RX+AboU8/6IGEQ8Fv/e8d2I1KH3+jIQOyj4=";
|
||||||
|
current =
|
||||||
|
lib:
|
||||||
|
lib.lists.fold (acc: v: if lib.strings.versionOlder acc v then v else acc) "0.0.0" (
|
||||||
|
builtins.attrNames v
|
||||||
|
);
|
||||||
|
in
|
||||||
|
{
|
||||||
|
version ? current lib,
|
||||||
|
hash ? v.${version} or "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
|
||||||
|
|
||||||
|
lib,
|
||||||
|
python3Packages,
|
||||||
|
fetchFromGitHub,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
python3Packages.buildPythonApplication {
|
||||||
|
pname = "jprm";
|
||||||
|
version = version;
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "oddstr13";
|
||||||
|
repo = "jellyfin-plugin-repository-manager";
|
||||||
|
tag = "v${version}";
|
||||||
|
hash = hash;
|
||||||
|
};
|
||||||
|
|
||||||
|
build-system = with python3Packages; [ setuptools ];
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
dependencies = with python3Packages; [
|
||||||
|
click-log
|
||||||
|
python-slugify
|
||||||
|
pyyaml
|
||||||
|
tabulate
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue