37 lines
790 B
Nix
37 lines
790 B
Nix
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
|
|
];
|
|
}
|