stockholm/krebs/5pkgs/simple/internetarchive/default.nix
tv e5aafcc723 internetarchive: stdenv.lib -> lib
Deprecated since nixpkgs 21.05
2021-06-02 02:43:38 +02:00

40 lines
738 B
Nix

{ lib, pkgs, stdenv, pkgs }:
with pkgs.python3Packages;
buildPythonPackage rec {
pname = "internetarchive";
version = "1.7.3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0x3saklabdx7qrr11h5bjfd75hfbih7pw5gvl2784zvvvrqrz45g";
};
propagatedBuildInputs = [
requests
jsonpatch
docopt
clint
six
schema
backports_csv
];
# check only works when cloned from git repo
doCheck = false;
checkInputs = [
pytest
responses
];
prePatch = ''
sed -i "s/'schema.*'/'schema>=0.4.0'/" setup.py
'';
meta = with lib; {
description = "python library and cli for uploading files to internet archive";
license = licenses.agpl3;
};
}