Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2019-08-09 14:00:27 +02:00
595 changed files with 11993 additions and 5962 deletions

View File

@@ -20,11 +20,11 @@
buildPythonPackage rec {
pname = "APScheduler";
version = "3.6.0";
version = "3.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "0q22lgp001hkk4z4xs2b2hlix84ka15i576p33fmgp69zn4bhmlg";
sha256 = "1c56066rx09xk1zbd156whsynlakxazqq64i509id17015wzp6jj";
};
buildInputs = [

View File

@@ -1,30 +1,52 @@
{ stdenv, buildPythonPackage, fetchPypi
, pytest, jinja2, sphinx, vega_datasets, ipython, glibcLocales
, entrypoints, jsonschema, numpy, pandas, six, toolz, typing
, pythonOlder, recommonmark }:
, entrypoints
, glibcLocales
, ipython
, jinja2
, jsonschema
, numpy
, pandas
, pytest
, pythonOlder
, recommonmark
, six
, sphinx
, toolz
, typing
, vega_datasets
}:
buildPythonPackage rec {
pname = "altair";
version = "3.1.0";
version = "3.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "1zdznkybw3g8fd280h5j5cnnwcv30610gp8fl8vwqda1w2p6pgvp";
sha256 = "098macm0sw54xqijdy1c8cppcgw79wn52qdc71qqb51nibc17gls";
};
postPatch = ''
# Tests require network
rm altair/examples/boxplot_max_min.py altair/examples/line_percent.py
'';
propagatedBuildInputs = [
entrypoints
jsonschema
numpy
pandas
six
toolz
] ++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
checkInputs = [ pytest jinja2 sphinx vega_datasets ipython glibcLocales recommonmark ];
propagatedBuildInputs = [ entrypoints jsonschema numpy pandas six toolz ]
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
checkInputs = [
glibcLocales
ipython
jinja2
pytest
recommonmark
sphinx
vega_datasets
];
checkPhase = ''
export LANG=en_US.UTF-8
py.test altair --doctest-modules
pytest --doctest-modules altair
'';
meta = with stdenv.lib; {

View File

@@ -1,21 +1,21 @@
{ lib, buildPythonPackage, fetchPypi
, Babel, decorator, requests, requests_oauthlib, oauthlib, urllib3, six, click, markdown, pyyaml
, Babel, decorator, requests, requests_oauthlib, six, click, markdown, pyyaml
, pytestrunner, coverage, flake8, mock, pytest, pytestcov, tox
}:
buildPythonPackage rec {
pname = "apprise";
version = "0.7.8";
version = "0.7.9";
src = fetchPypi {
inherit pname version;
sha256 = "15xv7lhivjhgsaw5j30w1fkk8y33r8nkr2hwp8z1jmsxhdv9l03y";
sha256 = "0zqnk255d311ibird08sv0c21fw1r1xhldhyx5lnl3ji1xkv9173";
};
nativeBuildInputs = [ Babel ];
propagatedBuildInputs = [
decorator requests requests_oauthlib oauthlib urllib3 six click markdown pyyaml
decorator requests requests_oauthlib six click markdown pyyaml
];
checkInputs = [

View File

@@ -0,0 +1,36 @@
{ lib
, fetchPypi
, buildPythonPackage
, numpy
, scipy
, matplotlib
, flask
, pillow
, psycopg2
}:
buildPythonPackage rec {
pname = "ase";
version = "3.17.0";
src = fetchPypi {
inherit pname version;
sha256 = "1d4gxypaahby45zcpl0rffcn2z7n55dg9lcd8sv6jjsmbbf9vr4g";
};
propagatedBuildInputs = [ numpy scipy matplotlib flask pillow psycopg2 ];
checkPhase = ''
$out/bin/ase test
'';
# tests just hang most likely due to something with subprocesses and cli
doCheck = false;
meta = with lib; {
description = "Atomic Simulation Environment";
homepage = https://wiki.fysik.dtu.dk/ase/;
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ costrouc ];
};
}

View File

@@ -1,6 +1,7 @@
{ lib
, fetchPypi
, buildPythonPackage
, isPy27
, numpy
, scipy
, matplotlib
@@ -11,11 +12,12 @@
buildPythonPackage rec {
pname = "ase";
version = "3.17.0";
version = "3.18.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1d4gxypaahby45zcpl0rffcn2z7n55dg9lcd8sv6jjsmbbf9vr4g";
sha256 = "1ycp1yksysiiz902gn762030sfmirxm950pwpw2rcrpjvq95zm1r";
};
propagatedBuildInputs = [ numpy scipy matplotlib flask pillow psycopg2 ];

View File

@@ -1,6 +1,6 @@
{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
buildPythonPackage rec {
version = "3.1.4";
version = "3.2.1";
pname = "asgiref";
disabled = pythonOlder "3.5";
@@ -10,7 +10,7 @@ buildPythonPackage rec {
owner = "django";
repo = pname;
rev = version;
sha256 = "0rmasjrvf083c7855xnggy251gm8vaxyv970b2rd6198h8s3rldh";
sha256 = "16wb137dvnjmbmshy4r9vgsfjc4g8d6l527aj9d5vszyk5x5fm7d";
};
propagatedBuildInputs = [ async-timeout ];

View File

@@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "asyncssh";
version = "1.17.0";
version = "1.17.1";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "1qrpkdyl77956qg6g7g66bbd6bfvb2nwi2sjy3v3li8m3irx8d7d";
sha256 = "0gyqms4zs9j9k7dgy24va4w42vf20x75yx9jvsds0sg42mqlkd5v";
};
patches = [

View File

@@ -8,12 +8,12 @@
buildPythonPackage rec {
pname = "azure-batch";
version = "6.0.1";
version = "7.0.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "d5b0de3db0058cd69baf30e059874094abf865e24ccd82e3cd25f3a48b9676d1";
sha256 = "1q8mdjdbz408z2j0y1zxqg9zg8j1v84p0dnh621vq73a2x1g298j";
};
propagatedBuildInputs = [

View File

@@ -7,13 +7,13 @@
}:
buildPythonPackage rec {
version = "0.61.0";
version = "0.61.1";
pname = "azure-graphrbac";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "4ab27db29d730e4d35f420466500f8ee60a26a8151dbd121a6c353ccd9d4ee55";
sha256 = "1qmjhpqw0sgy406ij5xyzkffisjah9m1pfz9x54v66bwrbi8msak";
};
propagatedBuildInputs = [

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-authorization";
version = "0.51.1";
version = "0.52.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "d2789e21c6b85591b38d5d4e9b835b6546824c14e14aaa366da0ef50a95d2478";
sha256 = "0357laxgldb7lvvws81r8xb6mrq9dwwnr1bnwdnyj4bw6p21i9hn";
};
propagatedBuildInputs = [

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-containerinstance";
version = "1.4.1";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "87919f3e618ec0a40fd163d763113eef908e78c50d8b76bf4dd795444cb069fd";
sha256 = "1kd8lxm5kzk0wxbw1f3vin10hlhb4sygrxqd5c8k715s0ipkhmdh";
};
propagatedBuildInputs = [

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-cosmosdb";
version = "0.6.0";
version = "0.7.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "0g4znanx540p983gzr55z0n0jyzfnzmnzlshl92hm4gldwjdd91d";
sha256 = "1d9xzf9ydlhwlsk7ij64ji1r2j0l7bwaykwngcy5lh8sdxax305r";
};
propagatedBuildInputs = [

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-datamigration";
version = "2.1.0";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "49e6e68093e2d647c1c54a4027dee5b1d57f7e7c21480ae386c55cb3d5fa14bc";
sha256 = "0bixyya9afas0sv2wji7ivfi64z4dvv8p1gjnppibi5zas1mb4zw";
};
propagatedBuildInputs = [

View File

@@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-dns";
version = "2.1.0";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "3730b1b3f545a5aa43c0fff07418b362a789eb7d81286e2bed90ffef88bfa5d0";
sha256 = "0zxkcczf01b64qfwj98jqdvnwqahygcyccf37rcxpdcfgpkg9kbf";
};
propagatedBuildInputs = [

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-eventgrid";
version = "2.0.0";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "9a1da1085d39163b13dee14215b02f18eab93ede10ffe83dc6030ecf2163d2f1";
sha256 = "1hqwcl33r98lriz3fp6h8ir36bv9danx27290idv63fj7s95h866";
};
propagatedBuildInputs = [

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-eventhub";
version = "2.6.0";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1nnp2ki4iz4f4897psmwb0v5khrwh84fgxja7nl7g73g3ym20sz8";
sha256 = "05c6isg13dslds94kv28v6navxj4bp4c5lsd9df0g3ndsxvpdrxp";
};
propagatedBuildInputs = [

View File

@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-keyvault";
version = "1.1.0";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "05a15327a922441d2ba32add50a35c7f1b9225727cbdd3eeb98bc656e4684099";
sha256 = "057ii54h8yr7rhfnbl0r29xbsg7mhf031hjffmdv0zf93552kmja";
};
propagatedBuildInputs = [

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-monitor";
version = "0.6.0";
version = "0.7.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "5a804dae2c3e31bfd6f1b0482d49761b9a56f7eefa9b190cd76ef5fe1d504ef2";
sha256 = "1pprvk5255b6brbw73g0g13zygwa7a2px5x08wy3153rqlzan5l2";
};
propagatedBuildInputs = [

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-rdbms";
version = "1.8.0";
version = "1.9.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "40abbe4f9c59d7906594ceed067d0e7d09fef44be0d16aded5d5717f1a8aa5ea";
sha256 = "0v91hl936wp9sl3bc31svf6kdxwa57qh6ih9rrv43dnb2000km6r";
};
propagatedBuildInputs = [

View File

@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-recoveryservicesbackup";
version = "0.3.0";
version = "0.4.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1e55b6cbb808df83576cef352ba0065f4878fe505299c0a4c5a97f4f1e5793df";
sha256 = "0zssvzdip23yzaxlac9rlzg9mlyjl97fwr0gj8y27z8j58pwj72i";
};
propagatedBuildInputs = [

View File

@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-search";
version = "2.0.0";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "0ec5de861bd786bcb8691322feed6e6caa8d2f0806a50dc0ca5d640591926893";
sha256 = "0085c7qi9z1ayxd8683ck79nfnldkrwl481hzav84flyg8d0m94j";
};
propagatedBuildInputs = [

View File

@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-servicefabric";
version = "0.2.0";
version = "0.3.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "b2bf2279b8ff8450c35e78e226231655021482fdbda27db09975ebfc983398ad";
sha256 = "0cirsp8wnsswba6gbmw4s2ljsjwi3855my063gvi2mqr55spvx2n";
};
propagatedBuildInputs = [

View File

@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-signalr";
version = "0.1.1";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "8a6266a59a5c69102e274806ccad3ac74b06fd2c226e16426bbe248fc2174903";
sha256 = "0k39hf6r2rfy2wyxd9czha2mwmcqf6sc1v69jyh6ml3slbliivlz";
};
propagatedBuildInputs = [

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-web";
version = "0.41.0";
version = "0.42.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "5f170f25c72119ff4b4e2f39d46ce21bdb2f399f786ea24eedc15c12cfba3054";
sha256 = "0vp40i9aaw5ycz7s7qqir6jq7327f7zg9j9i8g31qkfl1h1c7pdn";
};
propagatedBuildInputs = [

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "betamax-serializers";
version = "0.2.0";
version = "0.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "1yqzwx204m4lxlpg04cwv6iwzmcpdzr19wvj97vvxchp0g4qg83d";
sha256 = "0ja9isbjmzzhxdj69s0kdsvw8nkp073w6an6a4liy5vk3fdl2p1l";
};
buildInputs = [ betamax pyyaml ];

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "biopython";
version = "1.73";
version = "1.74";
src = fetchPypi {
inherit pname version;
sha256 = "1q55jhf76z3k6is3psis0ckbki7df26x7dikpcc3vhk1vhkwribh";
sha256 = "1h4hcpx1vqrcddpcznyxy14zzvy2yanlkz0117w5n869w8djq595";
};
propagatedBuildInputs = [ numpy ];

View File

@@ -2,14 +2,14 @@
buildPythonPackage rec {
pname = "boltons";
version = "2019-01-07";
version = "19.1.0";
# No tests in PyPi Tarball
src = fetchFromGitHub {
owner = "mahmoud";
repo = "boltons";
rev = "3584ac9399f227a2a11b74153140ee171fd49783";
sha256 = "13xngjw249sk4vmr5kqqnia0npw0kpa0gm020a4dqid0cjyvj0rv";
rev = version;
sha256 = "0b55wly0ksviyl3a4dmih9vzd7bj3p10gr6la4722cs9cx4128q5";
};
checkInputs = [ pytest ];

View File

@@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "BTrees";
version = "4.5.1";
version = "4.6.0";
buildInputs = [ transaction ];
propagatedBuildInputs = [ persistent zope_interface ];
@@ -23,7 +23,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "dcc096c3cf92efd6b9365951f89118fd30bc209c9af83bf050a28151a9992786";
sha256 = "0bmkpg6z5z47p21340nyrfbdv2jkfp80yv085ndgbwaas1zi7ac9";
};
meta = with stdenv.lib; {

View File

@@ -19,7 +19,7 @@ index 718aa7f..1a1dcff 100644
+ 'cairo': '@cairo@/lib/libcairo@ext@',
+ 'glib-2.0': '@glib@/lib/libglib-2.0@ext@',
+ 'gobject-2.0': '@glib@/lib/libgobject-2.0@ext@',
+ 'gdk-pixbuf-2.0': '@gdk_pixbuf@/lib/libgdk_pixbuf-2.0@ext@',
+ 'gdk_pixbuf-2.0': '@gdk_pixbuf@/lib/libgdk_pixbuf-2.0@ext@',
+}
-def dlopen(ffi, *names):

View File

@@ -19,7 +19,7 @@ index 6061973..3538a58 100644
+ 'cairo': '@cairo@/lib/libcairo@ext@',
+ 'glib-2.0': '@glib@/lib/libglib-2.0@ext@',
+ 'gobject-2.0': '@glib@/lib/libgobject-2.0@ext@',
+ 'gdk-pixbuf-2.0': '@gdk_pixbuf@/lib/libgdk_pixbuf-2.0@ext@',
+ 'gdk_pixbuf-2.0': '@gdk_pixbuf@/lib/libgdk_pixbuf-2.0@ext@',
+}
-def dlopen(ffi, *names):

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "cfgv";
version = "2.0.0";
version = "2.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "0zn3nc7cyfsvg9gp7558656n2sn1m01j30l79ci22ibgvq4vxv9j";
sha256 = "0i1iam461bd6bphd402r7payr2m71xivy5zp6k2gjnv67fa8gczd";
};
propagatedBuildInputs = [ six ];

View File

@@ -0,0 +1,26 @@
{ lib, buildPythonApplication, fetchPypi, pytest, chardet }:
buildPythonApplication rec {
pname = "codespell";
version = "1.15.0";
src = fetchPypi {
inherit pname version;
sha256 = "0c211rzfgmwls8ab8fj21xp9bhxk6ys3xw8w7chp4arjlifc26wg";
};
checkInputs = [ pytest chardet ];
checkPhase = ''
# We don't want to be affected by the presence of these
rm -r codespell_lib setup.cfg
# test_command assumes too much about the execution environment
pytest --pyargs codespell_lib.tests -k "not test_command"
'';
meta = {
description = "Fix common misspellings in source code";
homepage = "https://github.com/codespell-project/codespell";
license = with lib.licenses; [ gpl2 cc-by-sa-30 ];
maintainers = with lib.maintainers; [ johnazoidberg ];
platforms = lib.platforms.all;
};
}

View File

@@ -1,4 +1,4 @@
{ lib
{ stdenv
, buildPythonPackage
, fetchPypi
, param
@@ -35,10 +35,11 @@ buildPythonPackage rec {
mkdir -p $HOME/.config/matplotlib
echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
pytest colorcet
# disable matplotlib tests on darwin, because it requires a framework build of Python
pytest ${stdenv.lib.optionalString stdenv.isDarwin "--ignore=colorcet/tests/test_matplotlib.py"} colorcet
'';
meta = with lib; {
meta = with stdenv.lib; {
description = "Collection of perceptually uniform colormaps";
homepage = https://colorcet.pyviz.org;
license = licenses.cc-by-40;

View File

@@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "Django";
version = "1.11.22";
version = "1.11.23";
src = fetchurl {
url = "https://www.djangoproject.com/m/releases/1.11/${pname}-${version}.tar.gz";
sha256 = "0if8p7sgbvpy3m8d25pw1x232s14ndd60w5s5d88jl3hl505s3c3";
sha256 = "1qb9npkpvyafd1f4yjqyzhj78wp1ifg3awj41bd04v83idznv9jj";
};
patches = stdenv.lib.optionals withGdal [

View File

@@ -6,13 +6,13 @@
buildPythonPackage rec {
pname = "Django";
version = "2.1.10";
version = "2.1.11";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0n794x17x8q2jzjm12glb900y53r3bxg8dafvl65djiglm4abqk5";
sha256 = "1m9bs78sh91slsjxkhxgkg715gbsgph9ky7d74czs0z2mhg86h8s";
};
patches = stdenv.lib.optionals withGdal [

View File

@@ -6,13 +6,13 @@
buildPythonPackage rec {
pname = "Django";
version = "2.2.3";
version = "2.2.4";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1sn0a7yjipwxrplh1x4kr77a93xzik1inh07bxwaqaw94qdzc8sd";
sha256 = "1s5ad5zlmwdn4h5lwn4s4m8mqy0gz4w9nfzyknn815sr252db98n";
};
patches = stdenv.lib.optional withGdal

View File

@@ -2,11 +2,11 @@
rcssmin, rjsmin, django_appconf }:
buildPythonPackage rec {
pname = "django_compressor";
version = "2.2";
version = "2.3";
src = fetchPypi {
inherit pname version;
sha256 = "9616570e5b08e92fa9eadc7a1b1b49639cce07ef392fc27c74230ab08075b30f";
sha256 = "1pbygd00l0k5p1r959131khij1km1a1grfxg0r59ar2wyx3n7j27";
};
postPatch = ''
substituteInPlace setup.py --replace 'rcssmin == 1.0.6' 'rcssmin' \

View File

@@ -1,33 +1,43 @@
{ stdenv, buildPythonPackage, fetchPypi
, six, requests, websocket_client
, ipaddress, backports_ssl_match_hostname, docker_pycreds
{ stdenv, buildPythonPackage, fetchPypi, isPy27
, backports_ssl_match_hostname
, mock
, paramiko
, pytest
, requests
, six
, websocket_client
}:
buildPythonPackage rec {
version = "3.7.2";
version = "4.0.2";
pname = "docker";
src = fetchPypi {
inherit pname version;
sha256 = "c456ded5420af5860441219ff8e51cdec531d65f4a9e948ccd4133e063b72f50";
sha256 = "0r1i46h8x1vfvadayyvmh5hc6mpzgv3vvp6pv4g1wavamya2wnyc";
};
propagatedBuildInputs = [
six
requests
websocket_client
ipaddress
backports_ssl_match_hostname
docker_pycreds
paramiko
] ++ stdenv.lib.optional isPy27 backports_ssl_match_hostname;
checkInputs = [
mock
pytest
];
# Flake8 version conflict
doCheck = false;
# Other tests touch network
checkPhase = ''
${pytest}/bin/pytest tests/unit/
'';
meta = with stdenv.lib; {
description = "An API client for docker written in Python";
homepage = https://github.com/docker/docker-py;
license = licenses.asl20;
maintainers = with maintainers; [
];
maintainers = with maintainers; [ jonringer ];
};
}

View File

@@ -1,12 +1,12 @@
{ stdenv, buildPythonPackage, fetchPypi, six, pytestcov, pytest }:
buildPythonPackage rec {
version = "0.0.14";
version = "0.0.15";
pname = "dockerfile-parse";
src = fetchPypi {
inherit pname version;
sha256 = "0b829a9e25ac9af17a0affa41c0fca6541a03b8edb0178f60dc036e2ce59eeb5";
sha256 = "1s05s1hc834yk6qxj2yv3fh7grj3q52d6jjy0sv1p05938baprfm";
};
postPatch = ''

View File

@@ -0,0 +1,26 @@
{ buildPythonPackage
, lib
, fetchFromGitHub
}:
buildPythonPackage rec {
version = "1.1.8";
pname = "elementpath";
src = fetchFromGitHub {
owner = "sissaschool";
repo = "elementpath";
rev = "v${version}";
sha256 = "0krczvf8r6pb3hb8qaxl9h2b4qwg180xk66gyxjf002im7ri75aj";
};
# avoid circular dependency with xmlschema which directly depends on this
doCheck = false;
meta = with lib; {
description = "XPath 1.0/2.0 parsers and selectors for ElementTree and lxml";
homepage = "https://github.com/sissaschool/elementpath";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "emoji";
version = "0.5.2";
version = "0.5.3";
src = fetchPypi {
inherit pname version;
sha256 = "9ae01495fc3fcc04e9136ca1af8cae58726ec5dfaaa92f61f0732cbae9a12fa9";
sha256 = "0kn6qq1h0d6cg70wk0hji6bcwg5s18ys6gfmlmfmx8420ka150dn";
};
checkInputs = [ nose ];

View File

@@ -1,20 +1,36 @@
{ stdenv, buildPythonPackage, fetchPypi,
requests, mt-940, sepaxml, bleach, isPy3k }:
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
, bleach
, mt-940
, pytest
, requests
, sepaxml
}:
buildPythonPackage rec {
version = "2.1.1";
version = "2.2.0";
pname = "fints";
disabled = !isPy3k;
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "06p6p0xxw0n10hmf7z4k1l29fya0sja433s6lasjr1bal5asdhaq";
src = fetchFromGitHub {
owner = "raphaelm";
repo = "python-fints";
rev = "v${version}";
sha256 = "1gx173dzdprf3jsc7dss0xax8s6l2hr02qg9m5c4rksb3dl5fl8w";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'sepaxml==2.0.*' 'sepaxml~=2.0'
'';
propagatedBuildInputs = [ requests mt-940 sepaxml bleach ];
# no tests included in PyPI package
doCheck = false;
checkInputs = [ pytest ];
# ignore network calls and broken fixture
checkPhase = ''
pytest . --ignore=tests/test_client.py -k 'not robust_mode'
'';
meta = with stdenv.lib; {
homepage = https://github.com/raphaelm/python-fints/;

View File

@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "globus-sdk";
version = "1.7.1";
version = "1.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "d96f7ed1887c8f55f2bc8d493cd8ec73ff9f3361f0a134203e34e2e57bedd964";
sha256 = "0ggxa3av4rwva9h5idg1vfdybr7wkajw7g0sn42k04sxxa0cigwz";
};
checkPhase = ''

View File

@@ -1,24 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi, lib, grpcio}:
{ stdenv, buildPythonPackage, fetchPypi, protobuf, grpcio }:
buildPythonPackage rec {
pname = "grpcio-tools";
version = "1.18.0";
version = "1.22.0";
src = fetchPypi {
inherit pname version;
sha256 = "77ec4d3c92ccbbe3de37c457e3c72962e519c36cafb96abe5842bced8eb926fa";
sha256 = "b5c0fe51a155625c9d1132ab8deb56b3015e111a6961e48aeb9dd89bd7c670ab";
};
enableParallelBuilding = true;
propagatedBuildInputs = [ grpcio ];
propagatedBuildInputs = [ protobuf grpcio ];
# no tests in the package
doCheck = false;
meta = with stdenv.lib; {
description = "Protobuf code generator for gRPC";
license = lib.licenses.asl20;
license = licenses.asl20;
homepage = "https://grpc.io/grpc/python/";
maintainers = with maintainers; [ vanschelven ];
};

View File

@@ -1,32 +1,30 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, lib, darwin
, six, protobuf, enum34, futures, isPy27, isPy34, pkgconfig
{ stdenv, buildPythonPackage, fetchFromGitHub, darwin
, six, protobuf, enum34, futures, isPy27, pkgconfig
, cython}:
with stdenv.lib;
buildPythonPackage rec {
pname = "grpcio";
version = "1.18.0";
version = "1.22.0";
src = fetchFromGitHub {
owner = "grpc";
repo = "grpc";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "0cilbhk35gv46mk40jl5f3iqa94x14qyxbavpfq0kh0rld82nx4m";
sha256 = "093w8mgvl8ylqlqnfz06ijkmlnkxcjszf9zg6k5ybjw7dwal0jhz";
};
nativeBuildInputs = [ cython pkgconfig ]
++ optional stdenv.isDarwin darwin.cctools;
++ stdenv.lib.optional stdenv.isDarwin darwin.cctools;
propagatedBuildInputs = [ six protobuf ]
++ lib.optionals (isPy27 || isPy34) [ enum34 ]
++ lib.optionals (isPy27) [ futures ];
++ stdenv.lib.optionals (isPy27) [ enum34 futures ];
preBuild = optionalString stdenv.isDarwin "unset AR";
preBuild = stdenv.lib.optionalString stdenv.isDarwin "unset AR";
meta = with stdenv.lib; {
description = "HTTP/2-based RPC framework";
license = lib.licenses.asl20;
license = licenses.asl20;
homepage = "https://grpc.io/grpc/python/";
maintainers = with maintainers; [ vanschelven ];
};

View File

@@ -1,13 +1,30 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, six, enum34, decorator,
nose, gss, krb5Full, darwin }:
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, six
, enum34
, decorator
, nose
, krb5Full
, darwin
, isPy27
, parameterized
, shouldbe
, cython
, python
, k5test
}:
buildPythonPackage rec {
pname = "gssapi";
version = "1.5.1";
version = "1.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "76c9fda88a7178f41bf6454a06d64054c56b46f0dcbc73307f2e57bb8c25d8cc";
src = fetchFromGitHub {
owner = "pythongssapi";
repo = "python-${pname}";
rev = "v${version}";
sha256 = "1chmxhjbs39paaxlfsdrr13v4zvv94ijvhxasdphxlxkqlycbm4a";
};
# It's used to locate headers
@@ -16,18 +33,36 @@ buildPythonPackage rec {
--replace "get_output('krb5-config gssapi --prefix')" "'${lib.getDev krb5Full}'"
'';
LD_LIBRARY_PATH = "${krb5Full}/lib";
nativeBuildInputs = [
cython
krb5Full
];
nativeBuildInputs = [ krb5Full ]
++ ( if stdenv.isDarwin then [ darwin.apple_sdk.frameworks.GSS ] else [ gss ] );
propagatedBuildInputs = [
decorator
six
] ++ lib.optional isPy27 enum34;
propagatedBuildInputs = [ decorator enum34 six ];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.GSS
];
checkInputs = [ nose ];
checkInputs = [
k5test
nose
parameterized
shouldbe
six
];
doCheck = false; # No such file or directory: '/usr/sbin/kadmin.local'
doCheck = !stdenv.isDarwin; # many failures on darwin
meta = with stdenv.lib; {
checkPhase = ''
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
${python.interpreter} setup.py nosetests
'';
meta = with lib; {
homepage = https://pypi.python.org/pypi/gssapi;
description = "Python GSSAPI Wrapper";
license = licenses.mit;

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "h2";
version = "3.1.0";
version = "3.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "fd07e865a3272ac6ef195d8904de92dc7b38dc28297ec39cfa22716b6d62e6eb";
sha256 = "1d1svhixk3hr78ph3nx8wi7sagx1xrvm712mmk028i2rhb92p8xq";
};
propagatedBuildInputs = [ enum34 hpack hyperframe ];

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "html5-parser";
version = "0.4.7";
version = "0.4.8";
src = fetchPypi {
inherit pname version;
sha256 = "1gzs9fa38m80y509fg58ylwhxgy7w28ww968pi6wmfrih9ib6l93";
sha256 = "00d1zfk72xzyibh7l4ib57y0isn5gic7avgbh7afbkk99iwd5smi";
};
nativeBuildInputs = [ pkgconfig ];

View File

@@ -14,12 +14,12 @@
buildPythonPackage rec {
pname = "jenkins-job-builder";
version = "2.10.0";
version = "2.10.1";
disabled = !isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0jp8v0a3yhjv7024y7r4jd4kq008ljra6lxx4143jw3rp72q3afc";
sha256 = "0iynzxrjmdkrriw4pcf8as8afckvmq4jk457lxg52wh29l39wb30";
};
postPatch = ''

View File

@@ -1,18 +1,21 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "jsonpickle";
version = "1.1";
version = "1.2";
src = fetchPypi {
inherit pname version;
sha256 = "625098cc8e5854b8c23b587aec33bc8e33e0e597636bfaca76152249c78fe5c1";
sha256 = "16xj4r31pnd90slax5mmd5wps5s73wp9mn6sy9nhkl5ih7bj5sfk";
};
doCheck = false;
checkInputs = [ pytest ];
checkPhase = "pytest tests/jsonpickle_test.py";
meta = {
description = "Python library for serializing any arbitrary object graph into JSON";
@@ -20,4 +23,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd3;
};
}
}

View File

@@ -1,11 +1,11 @@
{ stdenv, buildPythonPackage, fetchPypi
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch
, nose, numpy
, bottle, pyyaml, redis, six
, zlib }:
buildPythonPackage rec {
pname = "Jug";
version = "1.6.7";
version = "1.6.9";
buildInputs = [ nose numpy ];
propagatedBuildInputs = [
bottle
@@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "a7faba838f3437163ae8459bff96e2c6ca1298312bdb9104c702685178d17269";
sha256 = "0193hp8ap6caw57jdch3vw0hl5m8942lxhjdsfaxk4bfb239l5kz";
};
meta = with stdenv.lib; {

View File

@@ -7,10 +7,6 @@
, dateutil
, isPyPy
, py
, ipykernel
, ipython
, mock
, pytest
, tornado
}:
@@ -20,15 +16,16 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "98e8af5edff5d24e4d31e73bc21043130ae9d955a91aa93fc0bc3b1d0f7b5880";
sha256 = "102qgc7isfxwq0zsj6m9apcyj2hk8c8c4fz7656lxlpmvxgazs4q";
};
checkInputs = [ ipykernel ipython mock pytest ];
propagatedBuildInputs = [traitlets jupyter_core pyzmq dateutil tornado ] ++ lib.optional isPyPy py;
checkPhase = ''
py.test
'';
propagatedBuildInputs = [
traitlets
jupyter_core
pyzmq
dateutil
tornado
] ++ lib.optional isPyPy py;
# Circular dependency with ipykernel
doCheck = false;
@@ -39,4 +36,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}
}

View File

@@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "2c6e7c1e9f2ac45b5c2ceea5730bc9008d92fe59d0725eac57b04c0edfba24f7";
sha256 = "1xr4pbghwk5hayn5wwnhb7z95380r45p79gf5if5pi1akwg7qvic";
};
checkInputs = [ pytest mock glibcLocales ];
@@ -23,8 +23,7 @@ buildPythonPackage rec {
patches = [ ./tests_respect_pythonpath.patch ];
checkPhase = ''
mkdir tmp
HOME=tmp TMPDIR=tmp LC_ALL=en_US.utf8 py.test
HOME=$TMPDIR LC_ALL=en_US.utf8 py.test
'';
meta = with lib; {

View File

@@ -1,41 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, testfixtures
, pyyaml
{ lib, buildPythonPackage, fetchPypi, isPy27
, mock
, nbformat
, pytest
, pyyaml
}:
buildPythonPackage rec {
pname = "jupytext";
version = "1.1.7";
version = "1.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "0g365j22gbmq4x60l06id5930aywzy1dx2s25109nqq2l2cxc7ws";
sha256 = "05vwxgjh7pzxgdzj0775562bfps8j7w3p7dcf1zfh169whqw9vg8";
};
propagatedBuildInputs = [
pyyaml
nbformat
testfixtures
];
] ++ lib.optionals isPy27 [ mock ]; # why they put it in install_requires, who knows
checkInputs = [
pytest
];
# setup.py checks for those even though they're not needed at runtime (only
# for tests), thus not propagated
buildInputs = [
mock
pytest
];
# requires test notebooks which are not shipped with the pypi release
# also, pypi no longer includes tests
doCheck = false;
checkPhase = ''
py.test
pytest
'';
meta = with lib; {

View File

@@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchPypi
, substituteAll
, six
, krb5Full
, findutils
, which
}:
buildPythonPackage rec {
pname = "k5test";
version = "0.9.2";
src = fetchPypi {
inherit pname version;
sha256 = "1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8";
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit findutils krb5Full;
# krb5-config is in dev output
krb5FullDev = krb5Full.dev;
which = "${which}/bin/which";
})
];
propagatedBuildInputs = [
six
];
# No tests
doCheck = false;
meta = with lib; {
description = "Library for setting up self-contained Kerberos 5 environment";
homepage = https://github.com/pythongssapi/k5test;
license = licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,90 @@
diff --git a/k5test/_utils.py b/k5test/_utils.py
index e289fac..e2f486a 100644
--- a/k5test/_utils.py
+++ b/k5test/_utils.py
@@ -65,12 +65,12 @@ def find_plugin_dir():
# if there was no LD_LIBRARY_PATH, or the above failed
if _PLUGIN_DIR is None:
- lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib64')
+ lib_dir = os.path.join(get_output('@krb5FullDev@/bin/krb5-config --prefix'), 'lib64')
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
# /usr/lib64 seems only to be distinct on Fedora/RHEL/Centos family
if _PLUGIN_DIR is None:
- lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib')
+ lib_dir = os.path.join(get_output('@krb5FullDev@/bin/krb5-config --prefix'), 'lib')
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
if _PLUGIN_DIR is not None:
@@ -89,7 +89,7 @@ def _decide_plugin_dir(dirs):
for path in shortest_first:
# check to see if it actually contains .so files
- if get_output('find %s -name "*.so"' % path):
+ if get_output('@findutils@/bin/find %s -name "*.so"' % path):
return path
return None
@@ -97,7 +97,7 @@ def _decide_plugin_dir(dirs):
def _find_plugin_dirs_installed(search_path):
try:
- options_raw = get_output('find %s/ -type d \( ! -executable -o ! -readable \) '
+ options_raw = get_output('@findutils@/bin/find %s/ -type d \( ! -executable -o ! -readable \) '
'-prune -o '
'-type d -path "*/krb5/plugins" -print' % search_path,
stderr=subprocess.STDOUT)
@@ -111,7 +111,7 @@ def _find_plugin_dirs_installed(search_path):
def _find_plugin_dirs_src(search_path):
- options_raw = get_output('find %s/../ -type d -name plugins' % search_path)
+ options_raw = get_output('@findutils@/bin/find %s/../ -type d -name plugins' % search_path)
if options_raw:
return options_raw.split('\n')
diff --git a/k5test/realm.py b/k5test/realm.py
index f57946b..ad78579 100644
--- a/k5test/realm.py
+++ b/k5test/realm.py
@@ -181,19 +181,13 @@ class K5Realm(object):
return path
def _init_paths(self, **paths):
- self.kdb5_util = self._discover_path('kdb5_util',
- '/usr/sbin/kdb5_util', paths)
- self.krb5kdc = self._discover_path('krb5kdc',
- '/usr/sbin/krb5kdc', paths)
- self.kadmin_local = self._discover_path('kadmin_local',
- '/usr/sbin/kadmin.local',
- paths)
- self.kprop = self._discover_path('kprop', '/usr/sbin/kprop', paths)
- self.kadmind = self._discover_path('kadmind',
- '/usr/sbin/kadmind', paths)
-
- self._kinit = self._discover_path('kinit', '/usr/bin/kinit', paths)
- self._klist = self._discover_path('klist', '/usr/bin/klist', paths)
+ self.kdb5_util = '@krb5Full@/bin/kdb5_util'
+ self.krb5kdc = '@krb5Full@/bin/krb5kdc'
+ self.kadmin_local = '@krb5Full@/bin/kadmin.local'
+ self.kprop = '@krb5Full@/bin/kprop'
+ self.kadmind = '@krb5Full@/bin/kadmind'
+ self._kinit = '@krb5Full@/bin/kinit'
+ self._klist = '@krb5Full@/bin/klist'
def _create_conf(self, profile, filename):
with open(filename, 'w') as conf_file:
diff --git a/k5test/unit.py b/k5test/unit.py
index 4ee7f98..543d662 100644
--- a/k5test/unit.py
+++ b/k5test/unit.py
@@ -38,7 +38,7 @@ _KRB_VERSION = None
def krb_minversion_test(target_version, problem):
global _KRB_VERSION
if _KRB_VERSION is None:
- _KRB_VERSION = _utils.get_output("krb5-config --version")
+ _KRB_VERSION = _utils.get_output("@krb5FullDev@/bin/krb5-config --version")
_KRB_VERSION = _KRB_VERSION.split(' ')[-1].split('.')
def make_ext_test(func):

View File

@@ -4,7 +4,7 @@
buildPythonPackage rec {
pname = "kubernetes";
version = "9.0.0";
version = "10.0.0";
prePatch = ''
sed -e 's/sphinx>=1.2.1,!=1.3b1,<1.4 # BSD/sphinx/' -i test-requirements.txt
@@ -23,7 +23,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "1gz3sk4s0gx68xpxjwzp9n2shlxfa9d5j4h7cvmglim9bgasxc58";
sha256 = "0v3hiy427ca010k8brys3aafgb5013i32yva1nmiibk3xcf7f90f";
};
checkInputs = [ isort coverage pytest mock sphinx autopep8 pep8 codecov recommonmark nose ];

View File

@@ -5,13 +5,13 @@
buildPythonPackage rec {
pname = "lark-parser";
version = "0.7.1";
version = "0.7.2";
src = fetchFromGitHub {
owner = "lark-parser";
repo = "lark";
rev = version;
sha256 = "17h7s0yc8jyjmlcwsaw93ijl982ws3p8nxif2dc3rv01dqhf0xx1";
sha256 = "05na4izlq34bmij8awmfn58liinmsh8qzh6948knk5ms5nsh50cp";
};
# tests of Nearley support require js2py

View File

@@ -3,14 +3,14 @@
buildPythonPackage rec {
pname = "libarcus";
version = "4.1.0";
version = "4.2.0";
format = "other";
src = fetchFromGitHub {
owner = "Ultimaker";
repo = "libArcus";
rev = version;
sha256 = "1x06daijxbrqj0dlxmi2zn7ap74zf6hih3krmkwhvarm2nr052g4";
sha256 = "0pk0g80ay9aghzmb8gfpqh0chl9rk47jh0ziicpianhklxx2jb44";
};
disabled = pythonOlder "3.4.0";
@@ -20,7 +20,7 @@ buildPythonPackage rec {
buildInputs = [ protobuf ];
postPatch = ''
sed -i 's#''${Python3_SITELIB}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
'';
meta = with stdenv.lib; {
@@ -28,6 +28,6 @@ buildPythonPackage rec {
homepage = https://github.com/Ultimaker/libArcus;
license = licenses.lgpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar ];
maintainers = with maintainers; [ abbradar gebner ];
};
}

View File

@@ -2,18 +2,18 @@
buildPythonPackage rec {
pname = "libsavitar";
version = "4.1.0";
version = "4.2.0";
format = "other";
src = fetchFromGitHub {
owner = "Ultimaker";
repo = "libSavitar";
rev = version;
sha256 = "132bgcvjkr61pzf244hwz8gxzpg1i50na4bkcipwnyxdravdkkgf";
sha256 = "0cqskd8rcg7pih8nj3s2i137lwxpibmdmym6f8hii14ashny73i1";
};
postPatch = ''
sed -i 's#''${Python3_SITELIB}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
'';
nativeBuildInputs = [ cmake ];
@@ -27,6 +27,6 @@ buildPythonPackage rec {
homepage = https://github.com/Ultimaker/libSavitar;
license = licenses.lgpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ abbradar orivej ];
maintainers = with maintainers; [ abbradar orivej gebner ];
};
}

View File

@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "lmdb";
version = "0.95";
version = "0.96";
src = fetchPypi {
inherit pname version;
sha256 = "0nx9f193gzl33r1lbqhb96h1igya7pz8wmahr8m9x5zgc05hal91";
sha256 = "0wpahad7wac34r1hxa1jhk0bsll39n7667cljyr5251kj12ksfgr";
};
checkInputs = [ pytest cffi ];

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "logilab-common";
version = "1.4.2";
version = "1.4.3";
src = fetchPypi {
inherit pname version;
sha256 = "cdda9ed0deca7c68f87f7a404ad742e47aaa1ca5956d12988236a5ec3bda13a0";
sha256 = "1zw8bijlcmqrigsqvzj7gwh3qbd33dmpi9ij6h56b41x0dpm957d";
};
propagatedBuildInputs = [ unittest2 six ];

View File

@@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "luftdaten";
version = "0.6.1";
version = "0.6.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0jxp9yfabdgn2d6w69ijrw1bk1d9g897425cyybiyc13zhhs0kwg";
sha256 = "0919hcycv2rkn99lv4dn78i827mgvm3vagm9xcc6qgawsli8vrlp";
};
propagatedBuildInputs = [ aiohttp async-timeout ];

View File

@@ -30,7 +30,7 @@ buildPythonPackage rec {
'';
meta = with stdenv.lib; {
description = "Practical Machine Learning for NLP in Python";
description = "Numpy data type serialization using msgpack";
homepage = https://github.com/lebedov/msgpack-numpy;
license = licenses.bsd3;
maintainers = with maintainers; [ aborsu ];

View File

@@ -4,14 +4,14 @@
}:
buildPythonPackage rec {
version = "0.9.3";
version = "0.10.0";
pname = "mwclient";
src = fetchFromGitHub {
owner = "mwclient";
repo = "mwclient";
rev = "v${version}";
sha256 = "1kbrmq8zli2j93vmc2887bs7mqr4q1n908nbi1jjcci5v4cd4cqw";
sha256 = "1c3q6lwmb05yqywc4ya98ca7hsl15niili8rccl4n1yqp77c103v";
};
checkInputs = [ pytest pytestpep8 pytestcache pytestcov responses mock ];

View File

@@ -1,13 +1,13 @@
{ fetchPypi, buildPythonPackage, lib, six, singledispatch, isPy3k }:
buildPythonPackage rec {
version = "3.4.3";
version = "3.4.4";
pname = "nltk";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1cjkv4jmmlr0w4qi399ncgb6lp41mb9i352934288wh9xad15mqj";
sha256 = "1dbwwhsbsp31bvvksq7kyrfs6s27lp8wgwqs4qf6hajkz2jj0k3n";
};
propagatedBuildInputs = [ six ] ++ lib.optional (!isPy3k) singledispatch;

View File

@@ -12,13 +12,13 @@ let
# Therefore we create a separate env for it.
scons = pkgs.python27.withPackages(ps: [ pkgs.scons ]);
in buildPythonPackage rec {
version = "0.6.4";
version = "0.6.5";
pname = "Nuitka";
# Latest version is not yet on PyPi
src = fetchurl {
url = "https://github.com/kayhayen/Nuitka/archive/${version}.tar.gz";
sha256 = "18np970h6s97m7j6ymqizq1ylnhb6l5msmxqgnayrllirhg7a8pf";
sha256 = "18vcmbyqdwsfa9gyj1sf518hsqczx7qlzrdc22hdb1zawzknb1pb";
};
checkInputs = [ vmprof pyqt4 ];

View File

@@ -0,0 +1,21 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "oath";
version = "1.4.3";
src = fetchPypi {
inherit pname version;
sha256 = "1xqgcqgx6aa0j21hwsdb3aqpqhviwj756bcqjjjcm1h1aij11p6m";
};
meta = with stdenv.lib; {
description = "Python implementation of the three main OATH specifications: HOTP, TOTP and OCRA";
homepage = "https://github.com/bdauvergne/python-oath";
license = licenses.bsd3;
maintainers = with maintainers; [ aw ];
};
}

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "palettable";
version = "3.1.1";
version = "3.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "0685b223a236bb7e2a900ef7a855ccf9a4027361c8acf400f3b350ea51870f80";
sha256 = "1qp83l4mnwa9rb06m1d45i4691nkbqi82895ck4j6pirb825mz4c";
};
checkInputs = [ pytest ];

View File

@@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "paramiko";
version = "2.4.2";
version = "2.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "a8975a7df3560c9f1e2b43dc54ebd40fd00a7017392ca5445ce7df409f900fcb";
sha256 = "0h9hb2kp07zdfbanad527ll90n9ji7isf7m39jyp0sr21pxfvcpl";
};
checkInputs = [ pytest mock pytest-relaxed ];

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "parse_type";
version = "0.4.2";
version = "0.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "0g3b6gsdwnm8dpkh2vn34q6dzxm9gl908ggyzcv31n9xbp3vv5pm";
sha256 = "02wclgiqky06y36b3q07b7ngpks5j0gmgl6n71ac2j2hscc0nsbz";
};
checkInputs = [ pytest pytestrunner ];

View File

@@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "pika";
version = "1.0.1";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "5ba83d3daffccb92788d24facdab62a3db6aa03b8a6d709b03dc792d35c0dfe8";
sha256 = "1gqx9avb9nwgiyw5nz08bf99v9b0hvzr1pmqn9wbhd2hnsj6p9wz";
};
# Tests require twisted which is only availalble for python-2.x

View File

@@ -10,12 +10,12 @@
}:
buildPythonPackage rec {
version = "1.4.0";
version = "1.5.0";
pname = "portalocker";
src = fetchPypi {
inherit pname version;
sha256 = "0gwjnalfwl1mb9a04m9h3hrds75xmc9na666aiz2cgz0m545dcrz";
sha256 = "08y5k39mn5a7n69wv0hsyjqb51lazs4i4dpxp42nla2lhllnpbyr";
};
checkInputs = [

View File

@@ -11,12 +11,12 @@
}:
buildPythonPackage rec {
version = "1.3.2";
version = "1.4.1";
pname = "pyglet";
src = fetchPypi {
inherit pname version;
sha256 = "b00570e7cdf6971af8953b6ece50d83d13272afa5d1f1197c58c0f478dd17743";
sha256 = "132p484g53b9p8g3q2bcnhzyg9x37hsm4rhpscl4llngjw5fbk22";
};
# find_library doesn't reliably work with nix (https://github.com/NixOS/nixpkgs/issues/7307).

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pyotp";
version = "2.2.7";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "00p69nw431f0s2ilg0hnd77p1l22m06p9rq4f8zfapmavnmzw3xy";
sha256 = "18d13ikra1iq0xyfqfm72zhgwxi2qi9ps6z1a6zmqp4qrn57wlzw";
};
meta = with lib; {

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pypcap";
version = "1.2.2";
version = "1.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "07ww25z4xydp11hb38halh1940gmp5lca11hwfb63zv3bps248x3";
sha256 = "1w5i79gh7cswvznr8rhilcmzhnh2y5c4jwh2qrfnpx05zqigm1xd";
};
patches = [

View File

@@ -1,5 +1,10 @@
{ lib, fetchurl, pythonPackages, pkgconfig
, qmake, lndir, qtbase, qtsvg, qtwebengine, dbus
, dbus
, qmake, lndir
, qtbase
, qtsvg
, qtdeclarative
, qtwebchannel
, withConnectivity ? false, qtconnectivity
, withWebKit ? false, qtwebkit
, withWebSockets ? false, qtwebsockets
@@ -9,29 +14,61 @@ let
inherit (pythonPackages) buildPythonPackage python isPy3k dbus-python enum34;
sip = pythonPackages.sip.override { sip-module = "PyQt5.sip"; };
sip = (pythonPackages.sip.override { sip-module = "PyQt5.sip"; }).overridePythonAttrs(oldAttrs: {
# If we install sip in another folder, then we need to create a __init__.py as well
# if we want to be able to import it with Python 2.
# Python 3 could rely on it being an implicit namespace package, however,
# PyQt5 we made an explicit namespace package so sip should be as well.
postInstall = ''
cat << EOF > $out/${python.sitePackages}/PyQt5/__init__.py
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
EOF
'';
});
in buildPythonPackage rec {
pname = "PyQt";
version = "5.11.3";
pname = "pyqt";
version = "5.13.0";
format = "other";
src = fetchurl {
url = "mirror://sourceforge/pyqt/PyQt5/PyQt-${version}/PyQt5_gpl-${version}.tar.gz";
sha256 = "0wqh4srqkcc03rvkwrcshaa028psrq58xkys6npnyhqxc0apvdf9";
url = "https://www.riverbankcomputing.com/static/Downloads/PyQt5/${version}/PyQt5_gpl-${version}.tar.gz";
sha256 = "1ydgdz28f1v17qqz3skyv26k5l0w63fr4dncc5xm49jr2gjzznqc";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkgconfig qmake lndir sip ];
buildInputs = [ dbus sip ];
propagatedBuildInputs = [ qtbase qtsvg qtwebengine dbus-python ]
++ lib.optional (!isPy3k) enum34
nativeBuildInputs = [
pkgconfig
qmake
lndir
sip
qtbase
qtsvg
qtdeclarative
qtwebchannel
]
++ lib.optional withConnectivity qtconnectivity
++ lib.optional withWebKit qtwebkit
++ lib.optional withWebSockets qtwebsockets;
++ lib.optional withWebSockets qtwebsockets
;
buildInputs = [
dbus
qtbase
qtsvg
qtdeclarative
]
++ lib.optional withConnectivity qtconnectivity
++ lib.optional withWebKit qtwebkit
++ lib.optional withWebSockets qtwebsockets
;
propagatedBuildInputs = [
dbus-python
sip
] ++ lib.optional (!isPy3k) enum34;
patches = [
# Fix some wrong assumptions by ./configure.py
@@ -39,6 +76,10 @@ in buildPythonPackage rec {
./pyqt5-fix-dbus-mainloop-support.patch
];
passthru = {
inherit sip;
};
configurePhase = ''
runHook preConfigure
@@ -62,8 +103,34 @@ in buildPythonPackage rec {
for i in $out/bin/*; do
wrapProgram $i --prefix PYTHONPATH : "$PYTHONPATH"
done
# Let's make it a namespace package
cat << EOF > $out/${python.sitePackages}/PyQt5/__init__.py
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
EOF
'';
installCheckPhase = let
modules = [
"PyQt5"
"PyQt5.QtCore"
"PyQt5.QtQml"
"PyQt5.QtWidgets"
"PyQt5.QtGui"
]
++ lib.optional withWebSockets "PyQt5.QtWebSockets"
++ lib.optional withWebKit "PyQt5.QtWebKit"
++ lib.optional withConnectivity "PyQt5.QtConnectivity"
;
imports = lib.concatMapStrings (module: "import ${module};") modules;
in ''
echo "Checking whether modules can be imported..."
${python.interpreter} -c "${imports}"
'';
doCheck = true;
enableParallelBuilding = true;
meta = with lib; {

View File

@@ -0,0 +1,89 @@
{ lib, fetchurl, pythonPackages, pkgconfig
, qmake, qtbase, qtsvg, qtwebengine
}:
let
inherit (pythonPackages) buildPythonPackage python isPy3k pyqt5 enum34;
inherit (pyqt5) sip;
in buildPythonPackage rec {
pname = "pyqtwebengine";
version = "5.12.1";
format = "other";
src = fetchurl {
url = "https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/${version}/PyQtWebEngine_gpl-${version}.tar.gz";
sha256 = "0wylkd7fh2g27y3710rpxmj9wx0wpi3z7qbv6khiddm15rkh81w6";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [
pkgconfig
qmake
sip
qtbase
qtsvg
qtwebengine
];
buildInputs = [
sip
qtbase
qtsvg
qtwebengine
];
propagatedBuildInputs = [ pyqt5 ]
++ lib.optional (!isPy3k) enum34;
configurePhase = ''
runHook preConfigure
mkdir -p "$out/share/sip/PyQt5"
# FIXME: Without --no-dist-info, I get
# unable to create /nix/store/yv4pzx3lxk3lscq0pw3hqzs7k4x76xsm-python3-3.7.2/lib/python3.7/site-packages/PyQtWebEngine-5.12.dist-info
${python.executable} configure.py -w \
--destdir="$out/${python.sitePackages}/PyQt5" \
--no-dist-info \
--apidir="$out/api/${python.libPrefix}" \
--sipdir="$out/share/sip/PyQt5" \
--pyqt-sipdir="${pyqt5}/share/sip/PyQt5" \
--stubsdir="$out/${python.sitePackages}/PyQt5"
runHook postConfigure
'';
postInstall = ''
# Let's make it a namespace package
cat << EOF > $out/${python.sitePackages}/PyQt5/__init__.py
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
EOF
'';
installCheckPhase = let
modules = [
"PyQt5.QtWebEngine"
"PyQt5.QtWebEngineWidgets"
];
imports = lib.concatMapStrings (module: "import ${module};") modules;
in ''
echo "Checking whether modules can be imported..."
PYTHONPATH=$PYTHONPATH:$out/${python.sitePackages} ${python.interpreter} -c "${imports}"
'';
doCheck = true;
enableParallelBuilding = true;
meta = with lib; {
description = "Python bindings for Qt5";
homepage = http://www.riverbankcomputing.co.uk;
license = licenses.gpl3;
platforms = platforms.mesaPlatforms;
};
}

View File

@@ -1,4 +1,4 @@
{ lib
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
@@ -15,6 +15,8 @@ buildPythonPackage rec {
sha256 = "7006e63bf1ca9c50bea3d189c0f862751a16ce40bb373197b218f57af5b837c0";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [
matplotlib
nose
@@ -24,6 +26,9 @@ buildPythonPackage rec {
pytest
];
# disable tests on darwin, because it requires a framework build of Python
doCheck = !stdenv.isDarwin;
checkPhase = ''
export HOME=$(mktemp -d)
mkdir -p $HOME/.config/matplotlib
@@ -32,7 +37,7 @@ buildPythonPackage rec {
pytest
'';
meta = with lib; {
meta = with stdenv.lib; {
description = "Pytest plugin to help with testing figures output from Matplotlib";
homepage = https://github.com/matplotlib/pytest-mpl;
license = licenses.bsd3;

View File

@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "pytest-pylint";
version = "0.14.0";
version = "0.14.1";
src = fetchPypi {
inherit pname version;
sha256 = "7bfbb66fc6dc160193a9e813a7c55e5ae32028f18660deeb90e1cb7e980cbbac";
sha256 = "1v6jqxbvzaw6v3xxwd689agy01k0j06q5c3q8gn2f3jlkrvylf4c";
};
buildInputs = [ pytestrunner ];

View File

@@ -8,13 +8,13 @@
}:
buildPythonPackage rec {
version = "0.7.1";
version = "0.7.2";
pname = "python-rapidjson";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "3ea01520ebe28d270c79120a836d251fbb2187227695461a310fe0293f348b2d";
sha256 = "0z8wzl5mjzs97y7sbhlm59kak3z377xln3z8lkjwrsh2sh5c9x3v";
};
LC_ALL="en_US.utf-8";

View File

@@ -0,0 +1,42 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, lxml
, oath
, pycryptodome
, requests
, pytest
}:
buildPythonPackage rec {
pname = "python-vipaccess";
version = "0.10.3";
src = fetchPypi {
inherit pname version;
sha256 = "1m6b7qipiaj6pz86kjhyq5m5jxxijpk58gpsdkj5bn0wjl6x1pg2";
};
propagatedBuildInputs = [
lxml
oath
pycryptodome
requests
];
checkInputs = [ pytest ];
# test_check_token_detects_valid_hotp_token,
# test_check_token_detects_valid_totp_token and
# test_check_token_detects_invlaid_token require network
checkPhase = ''
mv vipaccess vipaccess.hidden
pytest tests/ -k 'not test_check_token'
'';
meta = with stdenv.lib; {
description = "A free software implementation of Symantec's VIP Access application and protocol";
homepage = "https://github.com/dlenski/python-vipaccess";
license = licenses.asl20;
maintainers = with maintainers; [ aw ];
};
}

View File

@@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, requests
, lxml
, pandas
}:
buildPythonPackage rec {
pname = "pytrends";
version = "4.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "03gnn2mgjvpc7pbcijy7xilrhgjg7x2pp6ci96pdyqnhkqv02d3n";
};
doCheck = false;
propagatedBuildInputs = [ requests lxml pandas ];
meta = with stdenv.lib; {
description = "Pseudo API for Google Trends";
homepage = "https://github.com/GeneralMills/pytrends";
license = [ licenses.asl20 ];
maintainers = [ maintainers.mmahut ];
};
}

View File

@@ -7,12 +7,12 @@
buildPythonPackage rec {
pname = "pyutilib";
version = "5.7.0";
version = "5.7.1";
src = fetchPypi {
pname = "PyUtilib";
inherit version;
sha256 = "086fzgjb2mjgkfhg1hvc2gcyam2ab28mijygwica5fg4zz6rn32l";
sha256 = "1m5ijc5qmv8hg4yj496ix77hbcf7ylk4sa98ym53sfsyz0mg3kxr";
};
propagatedBuildInputs = [

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "QtAwesome";
version = "0.5.7";
version = "0.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "1c70k7b91f64df0v12ykv3xqj9pzgk919k215fb3y0d64zip42ai";
sha256 = "05qypwlzjkw31x7qgn01d4kcf40mbymg5c9h3i7cx2r8sw29akjy";
};
propagatedBuildInputs = [ qtpy six ];

View File

@@ -14,11 +14,11 @@
buildPythonPackage rec {
pname = "qtconsole";
version = "4.5.1";
version = "4.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "4af84facdd6f00a6b9b2927255f717bb23ae4b7a20ba1d9ef0a5a5a8dbe01ae2";
sha256 = "0z6d2rmzrx2dzbx94xxmsrl6vn6jjpzvb6014y2bqhwr7znbjzkn";
};
checkInputs = [ nose ] ++ lib.optionals isPy27 [mock];

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "QtPy";
version = "1.8.0";
version = "1.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "14hws3zc2d548bfkxk1j2xy4ll368rak3z16bz3pdlj9j259jrpb";
sha256 = "13cw8l7zrhbdi03k1wl1pg9xdl4ahdfa7yz8gd0f23sxnm22rdrd";
};
# no concrete propagatedBuildInputs as multiple backends are supposed

View File

@@ -2,10 +2,10 @@
buildPythonPackage rec {
pname = "relatorio";
version = "0.8.1";
version = "0.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "149a1c4c2a35d9b9e634fe80cac405bc9b4c03a42f818302362183515e7e835d";
sha256 = "0q93sl7ppfvjxylgq9m5n4xdgv4af7d69yxd84zszq10vjmpsg6k";
};
propagatedBuildInputs = [
genshi

View File

@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "rpyc";
version = "4.1.0";
version = "4.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "1pz90h21f74n8i3cx5ndxm4r3rismkx5qbw1c0cmfci9a3009rq5";
sha256 = "0rhmwq1jra2cs0j09z2ks4vnv0svi8lj21nq9qq50i52x4ml4yb7";
};
propagatedBuildInputs = [ nose plumbum ];

View File

@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, flask
, flask-cors
, numpy
, pillow
, gevent
, wget
, six
, colorcet
}:
buildPythonPackage rec {
pname = "runway-python";
version = "0.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "ef15c0df60cfe7ea26b070bbe2ba522d67d247b157c20f3f191fe545c17d0b85";
};
propagatedBuildInputs = [ flask flask-cors numpy pillow gevent wget six colorcet ];
# tests are not packaged in the released tarball
doCheck = false;
meta = {
description = "Helper library for creating Runway models";
homepage = https://github.com/runwayml/model-sdk;
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ prusnak ];
};
}

View File

@@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "scapy";
version = "2.4.2";
version = "2.4.3";
disabled = isPyPy;
@@ -21,15 +21,14 @@ buildPythonPackage rec {
owner = "secdev";
repo = "scapy";
rev = "v${version}";
sha256 = "03xzjklvc6y4d87k0rqpx5h112ld5nvgfldrbd8c4mx6f9mmd11n";
sha256 = "08ypdzp0p3gvmz3pwi0i9q5f7hz9cq8yn6gawia49ynallwnv4zy";
};
# TODO: Temporary workaround
patches = [ ./fix-version.patch ];
postPatch = ''
sed -i "s/NIXPKGS_SCAPY_VERSION/${version}/" \
setup.py scapy/__init__.py
sed -i "s/NIXPKGS_SCAPY_VERSION/${version}/" scapy/__init__.py
'' + lib.optionalString withManufDb ''
substituteInPlace scapy/data.py --replace "/opt/wireshark" "${wireshark}"
'';

View File

@@ -1,26 +1,13 @@
--- a/setup.py 2018-02-15 22:14:08.531591678 +0100
+++ b/setup.py 2018-03-27 17:15:38.617315539 +0200
@@ -47,7 +47,7 @@
diff --git a/scapy/__init__.py b/scapy/__init__.py
index d5ad6164..245ce2fb 100644
--- a/scapy/__init__.py
+++ b/scapy/__init__.py
@@ -90,7 +90,7 @@ def _version():
return 'unknown.version'
setup(
name='scapy',
- version=__import__('scapy').VERSION,
+ version='NIXPKGS_SCAPY_VERSION',
packages=[
'scapy',
'scapy/arch',
--- a/scapy/__init__.py 2018-03-27 17:38:52.706481269 +0200
+++ b/scapy/__init__.py 2018-03-27 17:39:56.576688890 +0200
@@ -82,9 +82,10 @@
if match:
return "git-archive.dev" + match.group(1)
elif sha1:
- return "git-archive.dev" + sha1
+ return 'NIXPKGS_SCAPY_VERSION'
else:
- return 'unknown.version'
+ return 'NIXPKGS_SCAPY_VERSION'
+
VERSION = _version()
-VERSION = __version__ = _version()
+VERSION = __version__ = "NIXPKGS_SCAPY_VERSION"
VERSION_MAIN = re.search(r"[0-9.]+", VERSION).group()
if __name__ == "__main__":

View File

@@ -1,17 +1,32 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k }:
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
, lxml
, pytest
, text-unidecode
, xmlschema
}:
buildPythonPackage rec {
version = "2.0.0";
version = "2.1.0";
pname = "sepaxml";
disabled = !isPy3k;
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0jhj8fa0lbyaw15q485kyyli9qgrmqr47a6z6pgqm40kwmjghiyc";
src = fetchFromGitHub {
owner = "raphaelm";
repo = "python-sepaxml";
rev = version;
sha256 = "0lkb0nnyxmwvm6gkwls8w2290b66lwz9bv8p39wwcn7flabviwhj";
};
# no tests included in PyPI package
doCheck = false;
propagatedBuildInputs = [
text-unidecode
xmlschema
];
checkInputs = [ pytest lxml ];
checkPhase = ''
pytest
'';
meta = with stdenv.lib; {
homepage = https://github.com/raphaelm/python-sepaxml/;

View File

@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "shodan";
version = "1.13.0";
version = "1.14.0";
src = fetchPypi {
inherit pname version;
sha256 = "06z9h5vxrvqns3yr4jfrxifw0iqdn6ijlnznpmyi8nc18h8yma2a";
sha256 = "0c5x53757p6ihh1f8xqsal2gi9ikcl3464b38qinva51s0kkb58k";
};
propagatedBuildInputs = [

View File

@@ -2,25 +2,38 @@
buildPythonPackage rec {
pname = sip-module;
version = "4.19.13";
version = "4.19.18";
format = "other";
disabled = isPyPy;
src = fetchurl {
url = "mirror://sourceforge/pyqt/sip/sip-${version}/sip-${version}.tar.gz";
sha256 = "0pniq03jk1n5bs90yjihw3s3rsmjd8m89y9zbnymzgwrcl2sflz3";
url = "https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz";
sha256 = "07kyd56xgbb40ljb022rq82shgxprlbl0z27mpf1b6zd00w8dgf0";
};
configurePhase = ''
${python.executable} ./configure.py \
--sip-module ${sip-module} \
-d $out/lib/${python.libPrefix}/site-packages \
-d $out/${python.sitePackages} \
-b $out/bin -e $out/include
'';
enableParallelBuilding = true;
installCheckPhase = let
modules = [
sip-module
"sipconfig"
];
imports = lib.concatMapStrings (module: "import ${module};") modules;
in ''
echo "Checking whether modules can be imported..."
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH ${python.interpreter} -c "${imports}"
'';
doCheck = true;
meta = with lib; {
description = "Creates C++ bindings for Python modules";
homepage = "http://www.riverbankcomputing.co.uk/";

View File

@@ -25,11 +25,11 @@
buildPythonPackage rec {
pname = "spacy";
version = "2.1.7";
version = "2.1.8";
src = fetchPypi {
inherit pname version;
sha256 = "0k4kh9jnpdawaqjxwcdi2h01s85s5r338ajgv9kkq59iha4hichh";
sha256 = "1dja0crbai2n1l19m0hkv2fkj9r6zzy5ijd6dffp60v7lrch8lcw";
};
prePatch = ''

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "spyder-kernels";
version = "0.4.4";
version = "0.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "0g3754s71cnh7kygps6gbzrhs5gb47p3pblr7hcvxk1mzl3xw94r";
sha256 = "7e124fad5203b748005e952cf33b44695dbb9d92f5e0dc5443e7ca0db817f400";
};
propagatedBuildInputs = [

View File

@@ -1,21 +1,23 @@
{ stdenv, buildPythonPackage, fetchPypi, makeDesktopItem, jedi, pycodestyle,
psutil, pyflakes, rope, numpy, scipy, matplotlib, pylint, keyring, numpydoc,
qtconsole, qtawesome, nbconvert, mccabe, pyopengl, cloudpickle, pygments,
spyder-kernels, qtpy, pyzmq, chardet }:
spyder-kernels, qtpy, pyzmq, chardet
, pyqtwebengine
}:
buildPythonPackage rec {
pname = "spyder";
version = "3.3.4";
version = "3.3.6";
src = fetchPypi {
inherit pname version;
sha256 = "1fa5yhw0sjk5qydydp76scyxd8lvyciknq0vajnq0mxhhvfig3ra";
sha256 = "1z7qw1h3rhca12ycv8xrzw6z2gf81v0j6lfq9kpwh472w4vk75v1";
};
propagatedBuildInputs = [
jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels
pygments qtpy pyzmq chardet
pygments qtpy pyzmq chardet pyqtwebengine
];
# There is no test for spyder
@@ -35,6 +37,7 @@ buildPythonPackage rec {
# remove dependency on pyqtwebengine
# this is still part of the pyqt 5.11 version we have in nixpkgs
sed -i /pyqtwebengine/d setup.py
substituteInPlace setup.py --replace "pyqt5<5.13" "pyqt5"
'';
# Create desktop item

View File

@@ -0,0 +1,22 @@
{ buildPythonPackage, fetchPypi, stdenv
}:
buildPythonPackage rec {
pname = "stringcase";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "023hv3gknblhf9lx5kmkcchzmbhkdhmsnknkv7lfy20rcs06k828";
};
# PyPi package does not include tests.
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/okunishinishi/python-stringcase;
description = "Convert string cases between camel case, pascal case, snake case etc";
license = licenses.mit;
maintainers = with maintainers; [ alunduil ];
};
}

View File

@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "traits";
version = "5.1.1";
version = "5.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "0lwmqgkjihqkf269xmdqsa302p378zjcpz01k9a98br7ngzrsj64";
sha256 = "0a17qmpw0z9h7ybh5yxrghvkcf2q90vgxzbnv1n4i0fxhi7mjy3s";
};
# Use pytest because its easier to discover tests

Some files were not shown because too many files have changed in this diff Show More