Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, fetchFromGitHub 3, pytest 4, six 5, tqdm 6, pyyaml 7, docopt 8, requests 9, jsonpatch 10, args 11, schema 12, responses 13, backports_csv 14, isPy3k 15, lib 16, glibcLocales 17, setuptools 18}: 19 20buildPythonPackage rec { 21 pname = "internetarchive"; 22 version = "1.9.4"; 23 24 # Can't use pypi, data files for tests missing 25 src = fetchFromGitHub { 26 owner = "jjjake"; 27 repo = "internetarchive"; 28 rev = "v${version}"; 29 sha256 = "10xlblj21hanahsmw6lfggbrbpw08pdmvdgds1p58l8xd4fazli8"; 30 }; 31 32 propagatedBuildInputs = [ 33 six 34 tqdm 35 pyyaml 36 docopt 37 requests 38 jsonpatch 39 args 40 schema 41 setuptools 42 ] ++ lib.optionals (!isPy3k) [ backports_csv ]; 43 44 checkInputs = [ pytest responses glibcLocales ]; 45 46 # tests depend on network 47 doCheck = false; 48 49 checkPhase = '' 50 LC_ALL=en_US.utf-8 pytest tests 51 ''; 52 53 meta = with lib; { 54 description = "A Python and Command-Line Interface to Archive.org"; 55 homepage = "https://github.com/jjjake/internetarchive"; 56 license = licenses.agpl3; 57 maintainers = [ maintainers.marsam ]; 58 }; 59}