nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 44 lines 990 B view raw
1{ buildPythonPackage, fetchFromGitHub, pytest, six, clint, pyyaml, docopt 2, requests, jsonpatch, args, schema, responses, backports_csv, isPy3k 3, lib, glibcLocales, setuptools }: 4 5buildPythonPackage rec { 6 pname = "internetarchive"; 7 version = "1.9.0"; 8 9 # Can't use pypi, data files for tests missing 10 src = fetchFromGitHub { 11 owner = "jjjake"; 12 repo = "internetarchive"; 13 rev = "v${version}"; 14 sha256 = "1h344c04ipzld4s7xk8d84f80samjjlgzvv3y8zsv0n1c895gymb"; 15 }; 16 17 propagatedBuildInputs = [ 18 six 19 clint 20 pyyaml 21 docopt 22 requests 23 jsonpatch 24 args 25 schema 26 setuptools 27 backports_csv 28 ]; 29 30 checkInputs = [ pytest responses glibcLocales ]; 31 32 # tests depend on network 33 doCheck = false; 34 35 checkPhase = '' 36 LC_ALL=en_US.utf-8 pytest tests 37 ''; 38 39 meta = with lib; { 40 description = "A python wrapper for the various Internet Archive APIs"; 41 homepage = https://github.com/jjjake/internetarchive; 42 license = licenses.agpl3; 43 }; 44}