This repository has been archived by the owner on Mar 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
default.nix
119 lines (95 loc) · 2.77 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{ stdenv, cmake, python36, python36Packages, curl, ncurses }:
with python36Packages;
let
homepagePrefix = "https://pypi.org/project";
# TODO: PR these to nixpkgs
orderedmultidict = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "orderedmultidict";
version = "0.7.11";
src = fetchPypi {
inherit pname version;
sha256 = "dc2320ca694d90dca4ecc8b9c5fdf71ca61d6c079d6feb085ef8d41585419a36";
};
propagatedBuildInputs = [ six ];
meta = with stdenv.lib; {
description = "Ordered Multivalue Dictionary";
homepage = "${homepagePrefix}/${pname}";
license = licenses.unlicense;
};
};
furl = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "furl";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "6bb7d9ed238a0104db3a638307be7abc35ec989d883f5882e01cb000b9bdbc32";
};
propagatedBuildInputs = [ orderedmultidict ];
doCheck = false;
meta = with stdenv.lib; {
description = "URL parsing and manipulation made easy";
homepage = "${homepagePrefix}/${pname}";
license = licenses.unlicense;
};
};
isbnlib = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "isbnlib";
version = "3.8.4";
src = fetchPypi {
inherit pname version;
sha256 = "76b978410874b140bd2622bb2b7658d90ae5794baf4dea9507b05a4b68ee3bfc";
};
# Not critical; no need to test
doCheck = false;
meta = with stdenv.lib; {
description = "Extract, clean, transform, hyphenate and metadata for ISBNs (International Standard Book Number)";
homepage = "${homepagePrefix}/${pname}";
license = licenses.lgpl3;
};
};
pymaybe = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pymaybe";
version = "0.1.6";
src = fetchPypi {
inherit pname version;
sha256 = "131pc968vh7rywmfaw41f8221vp4xn8lin6hrifv1s5rw411dvbp";
};
# Not critical; no need to test
doCheck = false;
meta = with stdenv.lib; {
description = "A Python implementation of the Maybe pattern";
homepage = "${homepagePrefix}/${pname}";
license = licenses.bsd3;
};
};
in
stdenv.mkDerivation rec {
name = "bookwyrm-${version}";
version = "0.7.0";
src = ../.;
meta = with stdenv.lib; {
description = "A TUI for searching for and downloading publicly available ebooks";
license = licenses.mit;
maintainers = [];
platforms = platforms.linux;
};
buildInputs = [
curl
ncurses
python36
(python36.buildEnv.override {
extraLibs = [
beautifulsoup4
furl
requests
isbnlib
pymaybe
];
})
];
nativeBuildInputs = [ cmake ];
}