45 lines
914 B
Nix
45 lines
914 B
Nix
{ 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 = [];
|
|
};
|
|
} |