nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 61 lines 1.1 kB view raw
1{ buildPythonPackage 2, fetchPypi 3, pytest 4, tqdm 5, pyyaml 6, docopt 7, requests 8, jsonpatch 9, args 10, schema 11, responses 12, lib 13, glibcLocales 14, setuptools 15, urllib3 16, pythonOlder 17}: 18 19buildPythonPackage rec { 20 pname = "internetarchive"; 21 version = "3.0.0"; 22 23 disabled = pythonOlder "3.7"; 24 25 src = fetchPypi { 26 inherit pname version; 27 sha256 = "sha256-fRcqsT8p/tqXUpU2/9lAEF1IT8Cy5KK0+jKaeVwZshI="; 28 }; 29 30 propagatedBuildInputs = [ 31 tqdm 32 pyyaml 33 docopt 34 requests 35 jsonpatch 36 args 37 schema 38 setuptools 39 urllib3 40 ]; 41 42 checkInputs = [ pytest responses glibcLocales ]; 43 44 # tests depend on network 45 doCheck = false; 46 47 checkPhase = '' 48 LC_ALL=en_US.utf-8 pytest tests 49 ''; 50 51 pythonImportsCheck = [ "internetarchive" ]; 52 53 meta = with lib; { 54 description = "A Python and Command-Line Interface to Archive.org"; 55 homepage = "https://github.com/jjjake/internetarchive"; 56 changelog = "https://github.com/jjjake/internetarchive/raw/v${version}/HISTORY.rst"; 57 license = licenses.agpl3Plus; 58 maintainers = [ maintainers.marsam ]; 59 mainProgram = "ia"; 60 }; 61}