2020-05-15 21:57:56 +00:00
|
|
|
{ buildPythonPackage
|
2020-10-11 12:50:04 +00:00
|
|
|
, fetchPypi
|
2020-05-15 21:57:56 +00:00
|
|
|
, pytest
|
|
|
|
, six
|
|
|
|
, tqdm
|
|
|
|
, pyyaml
|
|
|
|
, docopt
|
|
|
|
, requests
|
|
|
|
, jsonpatch
|
|
|
|
, args
|
|
|
|
, schema
|
|
|
|
, responses
|
|
|
|
, backports_csv
|
|
|
|
, isPy3k
|
|
|
|
, lib
|
|
|
|
, glibcLocales
|
|
|
|
, setuptools
|
2021-12-06 16:07:01 +00:00
|
|
|
, urllib3
|
2020-05-15 21:57:56 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "internetarchive";
|
2022-01-23 02:10:13 +00:00
|
|
|
version = "2.3.0";
|
2020-10-11 12:50:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-23 02:10:13 +00:00
|
|
|
sha256 = "fa89dc4be3e0a0aee24810a4a754e24adfd07edf710c645b4f642422c6078b8d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
2020-05-15 21:57:56 +00:00
|
|
|
tqdm
|
2020-04-24 23:36:52 +00:00
|
|
|
pyyaml
|
|
|
|
docopt
|
|
|
|
requests
|
|
|
|
jsonpatch
|
|
|
|
args
|
|
|
|
schema
|
|
|
|
setuptools
|
2021-12-06 16:07:01 +00:00
|
|
|
urllib3
|
2020-05-15 21:57:56 +00:00
|
|
|
] ++ lib.optionals (!isPy3k) [ backports_csv ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [ pytest responses glibcLocales ];
|
|
|
|
|
|
|
|
# tests depend on network
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL=en_US.utf-8 pytest tests
|
|
|
|
'';
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
pythonImportsCheck = [ "internetarchive" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2020-05-15 21:57:56 +00:00
|
|
|
description = "A Python and Command-Line Interface to Archive.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/jjjake/internetarchive";
|
2021-04-08 16:26:57 +00:00
|
|
|
changelog = "https://github.com/jjjake/internetarchive/raw/v${version}/HISTORY.rst";
|
|
|
|
license = licenses.agpl3Plus;
|
2020-05-15 21:57:56 +00:00
|
|
|
maintainers = [ maintainers.marsam ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|