567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
36 lines
758 B
Nix
36 lines
758 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lxml,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ebooklib";
|
|
version = "0.20";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aerkalov";
|
|
repo = "ebooklib";
|
|
tag = "v${version}";
|
|
hash = "sha256-XrciVPaVU8tKhgNMJdN4uwGJT36iccyF8QMj/shSahw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
lxml
|
|
six
|
|
];
|
|
|
|
pythonImportsCheck = [ "ebooklib" ];
|
|
|
|
meta = {
|
|
description = "Python E-book library for handling books in EPUB2/EPUB3 format";
|
|
homepage = "https://github.com/aerkalov/ebooklib";
|
|
changelog = "https://github.com/aerkalov/ebooklib/blob/${src.tag}/CHANGES.txt";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [ Scrumplex ];
|
|
};
|
|
}
|