2018-01-08 08:14:48 +00:00
|
|
|
{ stdenv, pkgs, ... }:
|
2017-10-27 09:07:19 +00:00
|
|
|
with pkgs.python3Packages;
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "internetarchive";
|
|
|
|
version = "1.7.3";
|
|
|
|
name = "${pname}-${version}";
|
2018-01-06 19:49:58 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0x3saklabdx7qrr11h5bjfd75hfbih7pw5gvl2784zvvvrqrz45g";
|
|
|
|
};
|
|
|
|
|
2017-10-27 09:07:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
2018-01-06 19:49:58 +00:00
|
|
|
jsonpatch
|
|
|
|
docopt
|
|
|
|
clint
|
|
|
|
six
|
|
|
|
schema
|
|
|
|
backports_csv
|
2017-10-27 09:07:19 +00:00
|
|
|
];
|
|
|
|
|
2018-01-06 19:49:58 +00:00
|
|
|
# check only works when cloned from git repo
|
2017-10-27 09:07:19 +00:00
|
|
|
doCheck = false;
|
2018-01-06 19:49:58 +00:00
|
|
|
|
2017-10-27 09:07:19 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
2018-01-06 19:49:58 +00:00
|
|
|
responses
|
2017-10-27 09:07:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i "s/'schema.*'/'schema>=0.4.0'/" setup.py
|
2018-01-06 19:49:58 +00:00
|
|
|
'';
|
2017-10-27 09:07:19 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "python library and cli for uploading files to internet archive";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
};
|
|
|
|
}
|