@@ -572,6 +572,21 @@ let
572572 };
573573 };
574574
575+ args = buildPythonPackage rec {
576+ name = "args-0.1.0";
577+
578+ src = pkgs.fetchurl {
579+ url = "https://pypi.python.org/packages/source/a/args/${name}.tar.gz";
580+ md5 = "66faf79ba2511def7b8b81d542482046";
581+ };
582+
583+ meta = {
584+ description = "Command Arguments for Humans";
585+ homepage = "https://github.com/kennethreitz/args";
586+ license = stdenv.lib.licenses.bsd;
587+ };
588+ };
589+
575590 area53 = buildPythonPackage (rec {
576591 name = "Area53-0.94";
577592
@@ -3430,59 +3445,77 @@ let
34303445 };
34313446 };
34323447
3433− jsonpatch = buildPythonPackage rec {
3434− name = "jsonpatch-1.8";
3448+ jdcal = buildPythonPackage rec {
3449+ version = "1.0";
3450+ name = "jdcal-${version}";
34353451
3436− src = pkgs.fetchurl {
3437− url = "https://pypi.python.org/packages/source/j/jsonpatch/jsonpatch-1.8.tar.gz";
3438− sha256 = "0xhp6prvk219vnzixbj231wymd458nqbnmsf5fn4252092prvig5";
3452+ src = pkgs.fetchFromGitHub {
3453+ owner = "phn";
3454+ repo = "jdcal";
3455+ rev = "v${version}";
3456+ sha256 = "0jjgrrylraqzk3n97hay4gj00ky6vlvkfaapfgqlbcxyq30j24vq";
34393457 };
34403458
3441− propagatedBuildInputs = with self; [ six jsonpointer ];
3442−
34433459 meta = {
3444− description = "Apply JSON-Patches (RFC 6902)";
3445− homepage = "https://github.com/stefankoegl/python-json-patch";
3446− license = licenses.bsd3;
3460+ description = "A module containing functions for converting between Julian dates and calendar dates";
3461+ homepage = "https://github.com/phn/jdcal";
3462+ license = licenses.bsd2;
3463+ maintainers = with maintainers; [ lihop ];
34473464 platforms = platforms.all;
34483465 };
34493466 };
34503467
3451− jsonpointer = buildPythonPackage rec {
3452− name = "jsonpointer-1.4";
3468+ internetarchive = let ver = "0.8.3"; in buildPythonPackage rec {
3469+ name = "internetarchive-${ver}";
3470+
3471+ src = pkgs.fetchurl {
3472+ url = "https://github.com/jjjake/internetarchive/archive/v${ver}.tar.gz";
3473+ sha256 = "0j3l13zvbx50j66l6pnf8y8y8m6gk1sc3yssvfd2scvmv4gnmm8n";
3474+ };
3475+
3476+ # It is hardcoded to specific versions, I don't know why.
3477+ preConfigure = ''
3478+ sed 's/==/>=/' -i setup.py
3479+ '';
3480+
3481+ propagatedBuildInputs = with self; [ six clint pyyaml docopt pytest
3482+ requests2 jsonpatch args ];
3483+
3484+ meta = with stdenv.lib; {
3485+ description = "A python wrapper for the various Internet Archive APIs";
3486+ homepage = "https://github.com/jjjake/internetarchive";
3487+ };
3488+ };
3489+
3490+ jsonpatch = buildPythonPackage rec {
3491+ name = "jsonpatch-1.11";
34533492
34543493 src = pkgs.fetchurl {
3455− url = "https://pypi.python.org/packages/source/j/jsonpointer/jsonpointer-1.4.tar.gz";
3456− sha256 = "1d0555smqwdbi0nm48hyqzywb9m2jlz5izgv56ll3zk7viz3b7fb";
3494+ url = "https://pypi.python.org/packages/source/j/jsonpatch/${name}.tar.gz";
3495+ md5 = "9f2d0aa31f99cc97089a203c5bed3924";
34573496 };
34583497
3459− #propagatedBuildInputs = with self; [ six jsonpointer ];
3498+ propagatedBuildInputs = with self; [ jsonpointer ];
34603499
34613500 meta = {
3462− description = "Identify specific nodes in a JSON document (RFC 6901)";
3463− homepage = "https://github.com/stefankoegl/python-json-pointer";
3464− license = licenses.bsd3;
3465− platforms = platforms.all;
3501+ description = "Library to apply JSON Patches according to RFC 6902";
3502+ homepage = "https://github.com/stefankoegl/python-json-patch";
3503+ license = stdenv.lib.licenses.bsd2; # "Modified BSD licence, says pypi"
34663504 };
34673505 };
34683506
3469− jdcal = buildPythonPackage rec {
3470− version = "1.0";
3471− name = "jdcal-${version}";
3507+ jsonpointer = buildPythonPackage rec {
3508+ name = "jsonpointer-1.9";
34723509
3473− src = pkgs.fetchFromGitHub {
3474− owner = "phn";
3475− repo = "jdcal";
3476− rev = "v${version}";
3477− sha256 = "0jjgrrylraqzk3n97hay4gj00ky6vlvkfaapfgqlbcxyq30j24vq";
3510+ src = pkgs.fetchurl {
3511+ url = "https://pypi.python.org/packages/source/j/jsonpointer/${name}.tar.gz";
3512+ md5 = "c4d3f28e72ba77062538d1c0864c40a9";
34783513 };
34793514
34803515 meta = {
3481− description = "A module containing functions for converting between Julian dates and calendar dates";
3482− homepage = "https://github.com/phn/jdcal";
3483− license = licenses.bsd2;
3484− maintainers = with maintainers; [ lihop ];
3485− platforms = platforms.all;
3516+ description = "Library to apply JSON Patches according to RFC 6902";
3517+ homepage = "https://github.com/stefankoegl/python-json-patch";
3518+ license = stdenv.lib.licenses.bsd2; # "Modified BSD licence, says pypi"
34863519 };
34873520 };
34883521
@@ -11862,11 +11895,11 @@ let
1186211895 };
1186311896
1186411897 clint = buildPythonPackage rec {
11865− name = "clint-0.3.1";
11898+ name = "clint-0.4.1";
1186611899
1186711900 src = pkgs.fetchurl {
1186811901 url = "http://pypi.python.org/packages/source/c/clint/${name}.tar.gz";
11869− md5 = "7dcd43fb08bfb84c7d63e9356ada7b73";
11902+ md5 = "d0a0952bfcc5f4c5e03c36854665b298";
1187011903 };
1187111904
1187211905 checkPhase = ''