nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 lxml,
6 six,
7}:
8
9buildPythonPackage rec {
10 pname = "ebooklib";
11 version = "0.20";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "aerkalov";
16 repo = "ebooklib";
17 tag = "v${version}";
18 hash = "sha256-XrciVPaVU8tKhgNMJdN4uwGJT36iccyF8QMj/shSahw=";
19 };
20
21 propagatedBuildInputs = [
22 lxml
23 six
24 ];
25
26 pythonImportsCheck = [ "ebooklib" ];
27
28 meta = {
29 description = "Python E-book library for handling books in EPUB2/EPUB3 format";
30 homepage = "https://github.com/aerkalov/ebooklib";
31 changelog = "https://github.com/aerkalov/ebooklib/blob/${src.tag}/CHANGES.txt";
32 license = lib.licenses.agpl3Only;
33 maintainers = with lib.maintainers; [ Scrumplex ];
34 };
35}