4a3aa3d7d8
GitOrigin-RevId: 24c9b05ac53e422f1af81a156f1fd58499eb27fb
58 lines
1,017 B
Nix
58 lines
1,017 B
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, six
|
|
, tqdm
|
|
, pyyaml
|
|
, docopt
|
|
, requests
|
|
, jsonpatch
|
|
, args
|
|
, schema
|
|
, responses
|
|
, backports_csv
|
|
, isPy3k
|
|
, lib
|
|
, glibcLocales
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "internetarchive";
|
|
version = "1.9.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "759053685c75e6e969d690043b82643c4016500abcbbc44e4daf52ec097a9a15";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
tqdm
|
|
pyyaml
|
|
docopt
|
|
requests
|
|
jsonpatch
|
|
args
|
|
schema
|
|
setuptools
|
|
] ++ lib.optionals (!isPy3k) [ backports_csv ];
|
|
|
|
checkInputs = [ pytest responses glibcLocales ];
|
|
|
|
# tests depend on network
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
LC_ALL=en_US.utf-8 pytest tests
|
|
'';
|
|
|
|
pythonImportsCheck = [ "internetarchive" ];
|
|
|
|
meta = with lib; {
|
|
description = "A Python and Command-Line Interface to Archive.org";
|
|
homepage = "https://github.com/jjjake/internetarchive";
|
|
license = licenses.agpl3;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|