mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
51 lines
871 B
Nix
51 lines
871 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, loguru
|
|
, poetry-core
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mobi";
|
|
version = "0.3.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iscc";
|
|
repo = "mobi";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-g1L72MkJdrKQRsEdew+Qsn8LfCn8+cmj2pmY6s4nv2U=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"loguru"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
loguru
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"mobi"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for unpacking unencrypted mobi files";
|
|
mainProgram = "mobiunpack";
|
|
homepage = "https://github.com/iscc/mobi";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|