Merge staging-next into staging
This commit is contained in:
22
pkgs/development/python-modules/cbor/default.nix
Normal file
22
pkgs/development/python-modules/cbor/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cbor";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1dmv163cnslyqccrybkxn0c9s1jk1mmafmgxv75iamnz5lk5l8hk";
|
||||
};
|
||||
|
||||
# Tests are excluded from PyPI and four unit tests are also broken:
|
||||
# https://github.com/brianolson/cbor_py/issues/6
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://bitbucket.org/bodhisnarkva/cbor;
|
||||
description = "Concise Binary Object Representation (CBOR) library";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ geistesk ];
|
||||
};
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
mock, django, redis, msgpack }:
|
||||
buildPythonPackage rec {
|
||||
pname = "django-redis";
|
||||
version = "4.9.1";
|
||||
version = "4.10.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "93fc0f73b0c1736546a979a4996826b2c430f56f7e4176df40ef53b9cb0e4f36";
|
||||
sha256 = "1rxcwnv9ik0swkwvfqdi9i9baw6n8if5pj6q63fjh4p9chw3j2xg";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
28
pkgs/development/python-modules/easywatch/default.nix
Normal file
28
pkgs/development/python-modules/easywatch/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, watchdog
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "easywatch";
|
||||
version = "0.0.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1b40cjigv7s9qj8hxxy6yhwv0320z7qywrigwgkasgh80q0xgphc";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ watchdog ];
|
||||
|
||||
# There are no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dead-simple way to watch a directory";
|
||||
homepage = https://github.com/Ceasar/easywatch;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fgaz ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,11 +8,11 @@ assert pythonOlder "3.3" -> ipaddress != null;
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Faker";
|
||||
version = "0.9.3";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8c6df7903c7b4a51f4ac273bc5fec79a249e3220c47b35d1ac1175b41982d772";
|
||||
sha256 = "067mdy9p1vbkypr3vazmrb0sga6maqbk542hr7hmzcb5lp3dr8sj";
|
||||
};
|
||||
|
||||
buildInputs = [ pytestrunner ];
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, gflags
|
||||
, iso8601
|
||||
, ipaddr
|
||||
, httplib2
|
||||
, google_apputils
|
||||
, google_api_python_client
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "gcutil-1.16.1";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchurl {
|
||||
url = https://dl.google.com/dl/cloudsdk/release/artifacts/gcutil-1.16.1.tar.gz;
|
||||
sha256 = "00jaf7x1ji9y46fbkww2sg6r6almrqfsprydz3q2swr4jrnrsx9x";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ gflags iso8601 ipaddr httplib2 google_apputils google_api_python_client ];
|
||||
|
||||
prePatch = ''
|
||||
sed -i -e "s|google-apputils==0.4.0|google-apputils==0.4.1|g" setup.py
|
||||
substituteInPlace setup.py \
|
||||
--replace "httplib2==0.8" "httplib2" \
|
||||
--replace "iso8601==0.1.4" "iso8601" \
|
||||
--replace "ipaddr==2.1.10" "ipaddr" \
|
||||
--replace "google-api-python-client==1.2" "google-api-python-client" \
|
||||
--replace "python-gflags==2.0" "python-gflags"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Command-line tool for interacting with Google Compute Engine";
|
||||
homepage = "https://cloud.google.com/compute/docs/gcutil/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ phreedom ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,13 +1,14 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
||||
, httplib2, google_auth, google-auth-httplib2, six, uritemplate, oauth2client }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-api-python-client";
|
||||
version = "1.7.4";
|
||||
version = "1.7.7";
|
||||
#disabled = !isPy3k; # TODO: Python 2.7 was deprecated but weboob still depends on it.
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5d5cb02c6f3112c68eed51b74891a49c0e35263380672d662f8bfe85b8114d7c";
|
||||
sha256 = "1nlsp8cll6v9w4649j98xw545bfnqa2xs7m9faa9mxc0kp8ff1li";
|
||||
};
|
||||
|
||||
# No tests included in archive
|
||||
|
||||
@@ -1,12 +1,20 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, gssapi, pyasn1 }:
|
||||
{ stdenv, fetchPypi, fetchFromGitHub, buildPythonPackage, gssapi, pyasn1 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.5.2";
|
||||
pname = "ldap3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "063dacy01mphc3n7z2qc2avykjavqm1gllkbvy7xzw5ihlqwhrrz";
|
||||
## This should work, but 2.5.2 has a weird tarball with empty source files
|
||||
## where upstream repository has non-empty ones
|
||||
# src = fetchPypi {
|
||||
# inherit pname version;
|
||||
# sha256 = "063dacy01mphc3n7z2qc2avykjavqm1gllkbvy7xzw5ihlqwhrrz";
|
||||
# };
|
||||
src = fetchFromGitHub {
|
||||
owner = "cannatag";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0p5l4bhy6j2nvvlxz5zvznbaqb72x791v9la2jr2wpwr60mzz9hw";
|
||||
};
|
||||
|
||||
buildInputs = [ gssapi ];
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.5.1";
|
||||
version = "0.6.1";
|
||||
pname = "node-semver";
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b87e335179d874a3dd58041198b2715ae70fd20eba81683acde3553c51b28f8e";
|
||||
sha256 = "1dv6mjsm67l1razcgmq66riqmsb36wns17mnipqr610v0z0zf5j0";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pdf2image";
|
||||
version = "1.0.0";
|
||||
version = "1.3.1";
|
||||
|
||||
buildInputs = [ pillow poppler_utils ];
|
||||
propagatedBuildInputs = [ pillow poppler_utils ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "74607efb48a9e95289148d70af05a53dbef192010a44ac868437fb044842697d";
|
||||
sha256 = "0igkzl12582iq6bh6dycw9bcz2459rs6gybq9mranj54yfgjl2ky";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -33,7 +33,7 @@ buildPythonPackage rec {
|
||||
default, encoding is done in an encoding neutral fashion (plain
|
||||
ASCII with \uXXXX escapes for unicode characters).
|
||||
'';
|
||||
homepage = http://code.google.com/p/simplejson/;
|
||||
license = lib.licenses.mit;
|
||||
homepage = https://github.com/simplejson/simplejson;
|
||||
license = with lib.licenses; [ mit afl21 ];
|
||||
};
|
||||
}
|
||||
|
||||
30
pkgs/development/python-modules/staticjinja/default.nix
Normal file
30
pkgs/development/python-modules/staticjinja/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, docopt
|
||||
, easywatch
|
||||
, jinja2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "staticjinja";
|
||||
version = "0.3.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1mxv7yy35657mfxx9xhbzihh10m5lb29fmscfh9q455zd4ikr032";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ jinja2 docopt easywatch ];
|
||||
|
||||
# There are no tests on pypi
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library and cli tool that makes it easy to build static sites using Jinja2";
|
||||
homepage = https://staticjinja.readthedocs.io/en/latest/;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fgaz ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ buildPythonPackage, fetchurl, stdenv, isPy27
|
||||
{ buildPythonPackage, fetchurl, fetchPypi, stdenv, isPy27
|
||||
, nose, pillow, prettytable, pyyaml, dateutil, gdata
|
||||
, requests, mechanize, feedparser, lxml, gnupg, pyqt5
|
||||
, libyaml, simplejson, cssselect, futures, pdfminer
|
||||
@@ -6,7 +6,18 @@
|
||||
, unidecode
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
let
|
||||
# Support for Python 2.7 was dropped in 1.7.7
|
||||
google_api_python_client_python27 = google_api_python_client.overrideDerivation
|
||||
(oldAttrs: rec {
|
||||
pname = "google-api-python-client";
|
||||
version = "1.7.6";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "14w5sdrp0bk9n0r2lmpqmrbf2zclpfq6q7giyahnskkfzdkb165z";
|
||||
};
|
||||
});
|
||||
in buildPythonPackage rec {
|
||||
pname = "weboob";
|
||||
version = "1.3";
|
||||
disabled = ! isPy27;
|
||||
@@ -35,8 +46,8 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ pillow prettytable pyyaml dateutil
|
||||
gdata requests mechanize feedparser lxml gnupg pyqt5 libyaml
|
||||
simplejson cssselect futures pdfminer termcolor google_api_python_client
|
||||
html2text unidecode ];
|
||||
simplejson cssselect futures pdfminer termcolor
|
||||
google_api_python_client_python27 html2text unidecode ];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
|
||||
Reference in New Issue
Block a user