1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/internetarchive/default.nix
2020-06-24 20:36:47 -07:00

60 lines
1 KiB
Nix

{ buildPythonPackage
, fetchFromGitHub
, pytest
, six
, tqdm
, pyyaml
, docopt
, requests
, jsonpatch
, args
, schema
, responses
, backports_csv
, isPy3k
, lib
, glibcLocales
, setuptools
}:
buildPythonPackage rec {
pname = "internetarchive";
version = "1.9.4";
# Can't use pypi, data files for tests missing
src = fetchFromGitHub {
owner = "jjjake";
repo = "internetarchive";
rev = "v${version}";
sha256 = "10xlblj21hanahsmw6lfggbrbpw08pdmvdgds1p58l8xd4fazli8";
};
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
'';
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 ];
};
}