pkgs.internetarchive: fix build

This commit is contained in:
makefu 2018-01-06 20:49:58 +01:00
parent 7f8ec648b8
commit 9da4f1242a
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

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