mov-cli: drop pin; update to latest revision of v3 from 1.5.7

This commit is contained in:
raf 2024-03-14 14:46:04 +03:00
commit 5244163a47
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
3 changed files with 89 additions and 73 deletions

View file

@ -1,54 +1,69 @@
{
lib,
python3Packages,
fetchFromGitHub,
fetchPypi,
pins,
}: let
pin = pins.mov-cli;
in
python3Packages.buildPythonPackage {
format = "pyproject";
pname = "mov-cli";
inherit (pin) version;
# python
python3,
# runtime dependencies
ffmpeg,
fzf,
mpv,
}:
python3.pkgs.buildPythonPackage {
pname = "mov-cli";
version = "2024-03-14-unstable";
pyproject = true;
src = fetchFromGitHub {
inherit (pin.repository) owner repo;
sha256 = pin.hash;
rev = pin.revision;
};
src = fetchFromGitHub {
owner = "mov-cli";
repo = "mov-cli";
rev = "620c46a4426cedda1b8cd4739c8ab3faeccae187";
hash = "sha256-l2CwHbvtRZ+tktwF3+zJj4KM4tCN0sRf/o654FWs0C4=";
};
propagatedBuildInputs = with python3Packages; [
poetry-core
pycryptodome
lxml
six
beautifulsoup4
tldextract
(httpx.overrideAttrs (_: {
src = fetchFromGitHub {
owner = "encode";
repo = "httpx";
rev = "refs/tags/0.26.0";
hash = "sha256-qMMx1CYu2/yH4NRvZFzJOflAPIbcvMYJqU4r+chuzl0=";
};
}))
(buildPythonPackage (let
pname = "krfzf_py";
version = "0.0.4";
in {
inherit pname version;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-W0wpR1/HRrtYC3vqEwh+Jwkgwnfa49LCFIArOXaSPCE=";
};
}))
makeWrapperArgs = let
binPath = lib.makeBinPath [
ffmpeg
fzf
mpv
];
in [
"--prefix PATH : ${binPath}"
];
meta = {
homepage = "https://github.com/mov-cli/mov-cli";
description = "A cli tool to browse and watch movies";
license = lib.licenses.gpl3Only;
mainProgram = "mov-cli";
};
}
propagatedBuildInputs = with python3.pkgs; [
beautifulsoup4
click
colorama
httpx
krfzf-py
lxml
poetry-core
pycrypto
setuptools
six
tldextract
toml
inquirer
unidecode
];
build-system = [
python3.pkgs.setuptools-scm
];
nativeBuildInputs = [
python3.pkgs.pythonRelaxDepsHook
];
pythonRelaxDeps = [
"httpx"
"tldextract"
];
meta = {
homepage = "https://github.com/mov-cli/mov-cli";
description = "A cli tool to browse and watch movies";
license = lib.licenses.gpl3Only;
mainProgram = "mov-cli";
};
}