nyxexprs/pkgs/mov-cli/default.nix

55 lines
1.2 KiB
Nix
Raw Normal View History

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
2023-11-05 18:19:20 +00:00
(httpx.overrideAttrs (_old: {
2023-11-03 09:27:04 +00:00
src = fetchFromGitHub {
owner = "encode";
repo = "httpx";
rev = "refs/tags/0.24.0";
hash = "sha256-eLCqmYKfBZXCQvFFh5kGoO91rtsvjbydZhPNtjL3Zaw=";
2023-11-03 07:25:58 +00:00
};
2023-11-03 09:27:04 +00:00
}))
(
2023-11-05 18:19:20 +00:00
buildPythonPackage rec {
2023-11-03 09:27:04 +00:00
pname = "krfzf_py";
version = "0.0.4";
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
meta = with lib; {
homepage = "https://github.com/mov-cli/mov-cli";
description = "A cli tool to browse and watch movies";
license = licenses.gpl3Only;
mainProgram = "mov-cli";
};
}