summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-10-26 20:41:16 +0200
committermakefu <github@syntax-fehler.de>2017-10-26 20:41:16 +0200
commitb4580347a657de5be97c59e8f8edc6cebde04c26 (patch)
tree7236434791d303dccbb4f215c4adecc57ac5602b /makefu/5pkgs
parent9af86e7134ae2f134bc93baf5d0332ad2a77f9f9 (diff)
ma pkgs.internetarchive: init
Diffstat (limited to 'makefu/5pkgs')
-rw-r--r--makefu/5pkgs/internetarchive/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/makefu/5pkgs/internetarchive/default.nix b/makefu/5pkgs/internetarchive/default.nix
new file mode 100644
index 000000000..b661aeeed
--- /dev/null
+++ b/makefu/5pkgs/internetarchive/default.nix
@@ -0,0 +1,32 @@
+{ pkgs, fetchFromGitHub, ... }:
+with pkgs.python3Packages;
+buildPythonPackage rec {
+ pname = "internetarchive";
+ version = "1.7.3";
+ name = "${pname}-${version}";
+ propagatedBuildInputs = [
+ requests
+ jsonpatch
+ docopt
+ clint
+ six
+ schema
+ backports_csv
+ ];
+
+ # check only works when cloned from git repo
+ doCheck = false;
+ checkInputs = [
+ pytest
+ responses
+ ];
+
+ prePatch = ''
+ sed -i "s/'schema.*'/'schema>=0.4.0'/" setup.py
+ '';
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "0x3saklabdx7qrr11h5bjfd75hfbih7pw5gvl2784zvvvrqrz45g";
+ };
+}