nix-packages/pkgs/nuber/default.nix

45 lines
914 B
Nix
Raw Normal View History

2022-11-12 19:31:11 +01:00
{ rustPlatform, lib, fetchFromGitHub, pythonPackages, ... }:
pythonPackages.buildPythonPackage rec {
pname = "nuber";
version = "1.1.0";
src = fetchFromGitHub {
owner = "mtshrmn";
repo = pname;
rev = "v${version}";
sha256 = "yjVu3GwdyiGKVRlETeLT0ww8ftvPRobJYzvesoPxrRo=";
fetchSubmodules = true;
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = "${src}/Cargo.lock";
};
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
# preBuild = ''
# # cp ${src}/
# # # avoid ENOENT in maturinBuildHook
# # touch wheel/Cargo.lock
# '';
propagatedBuildInputs = with pythonPackages; [
ueberzug
appdirs
click
# toml
];
# no tests implemented
doCheck = false;
meta = with lib; {
description = "Epub terminal reader with inline images";
longDescription = ''
'';
maintainers = [];
};
}