mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Merge pull request #50538 from Mic92/python.pkgs.internetarchive
python.pkgs.internetarchive: 1.7.2 -> 1.8.1
This commit is contained in:
commit
5ba0796bf2
@ -1,46 +1,41 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchFromGitHub, pytest, six, clint, pyyaml, docopt
|
{ buildPythonPackage, fetchFromGitHub, pytest, six, clint, pyyaml, docopt
|
||||||
, requests, jsonpatch, args, schema, responses, backports_csv }:
|
, requests, jsonpatch, args, schema, responses, backports_csv, isPy3k
|
||||||
|
, lib, glibcLocales }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
|
||||||
pname = "internetarchive";
|
pname = "internetarchive";
|
||||||
version = "1.7.2";
|
version = "1.8.1";
|
||||||
|
|
||||||
# Can't use pypi, data files for tests missing
|
# Can't use pypi, data files for tests missing
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jjjake";
|
owner = "jjjake";
|
||||||
repo = "internetarchive";
|
repo = "internetarchive";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1cijagy22qi8ydrvizqmi1whnc3qr94yk0910lwgpxjywcygggir";
|
sha256 = "1fdb0kr9hzgyh0l8d02khcjpsgyd63nbablhc49ncdsav3dhhr3f";
|
||||||
};
|
};
|
||||||
# It is hardcoded to specific versions, I don't know why.
|
|
||||||
preConfigure = ''
|
|
||||||
sed "s/schema>=.*/schema>=0.4.0',/" -i setup.py
|
|
||||||
sed "/backports.csv/d" -i setup.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
#phases = [ "unpackPhase" "configurePhase" "installPhase" "fixupPhase" "installCheckPhase" ];
|
propagatedBuildInputs = [
|
||||||
buildInputs = [ pytest responses ];
|
six
|
||||||
propagatedBuildInputs = [
|
clint
|
||||||
six
|
pyyaml
|
||||||
clint
|
docopt
|
||||||
pyyaml
|
requests
|
||||||
docopt
|
jsonpatch
|
||||||
requests
|
args
|
||||||
jsonpatch
|
schema
|
||||||
args
|
] ++ lib.optional (!isPy3k) backports_csv;
|
||||||
schema
|
|
||||||
backports_csv
|
|
||||||
];
|
|
||||||
|
|
||||||
# Tests disabled because ia binary doesn't exist when tests run
|
checkInputs = [ pytest responses glibcLocales ];
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
checkPhase = "pytest tests";
|
# tests depend on network
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
LC_ALL=en_US.utf-8 pytest tests
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "A python wrapper for the various Internet Archive APIs";
|
description = "A python wrapper for the various Internet Archive APIs";
|
||||||
homepage = https://github.com/jjjake/internetarchive;
|
homepage = https://github.com/jjjake/internetarchive;
|
||||||
license = licenses.agpl3;
|
license = licenses.agpl3;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user