2023-11-03 07:25:58 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3Packages,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fetchPypi,
|
2023-11-03 09:27:04 +00:00
|
|
|
pins,
|
|
|
|
}: let
|
|
|
|
pin = pins.mov-cli;
|
|
|
|
in
|
|
|
|
python3Packages.buildPythonPackage {
|
|
|
|
format = "pyproject";
|
|
|
|
pname = "mov-cli";
|
|
|
|
inherit (pin) version;
|
2023-11-03 07:25:58 +00:00
|
|
|
|
2023-11-03 09:27:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit (pin.repository) owner repo;
|
|
|
|
sha256 = pin.hash;
|
|
|
|
rev = pin.revision;
|
|
|
|
};
|
2023-11-03 07:25:58 +00:00
|
|
|
|
2023-11-03 09:27:04 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
poetry-core
|
|
|
|
pycryptodome
|
|
|
|
lxml
|
|
|
|
six
|
|
|
|
beautifulsoup4
|
|
|
|
tldextract
|
2024-01-21 10:55:07 +00:00
|
|
|
(httpx.overrideAttrs (_: {
|
2023-11-03 09:27:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "encode";
|
|
|
|
repo = "httpx";
|
2024-01-21 10:55:07 +00:00
|
|
|
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=";
|
2023-11-03 07:25:58 +00:00
|
|
|
};
|
2023-11-03 09:27:04 +00:00
|
|
|
}))
|
|
|
|
];
|
2023-11-03 07:25:58 +00:00
|
|
|
|
2024-01-21 10:55:07 +00:00
|
|
|
meta = {
|
2023-11-03 09:27:04 +00:00
|
|
|
homepage = "https://github.com/mov-cli/mov-cli";
|
|
|
|
description = "A cli tool to browse and watch movies";
|
2024-01-21 10:55:07 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
2023-11-03 09:27:04 +00:00
|
|
|
mainProgram = "mov-cli";
|
|
|
|
};
|
|
|
|
}
|