Merge staging into python-unstable

This commit is contained in:
Frederik Rietdijk
2019-02-21 08:02:10 +01:00
541 changed files with 16396 additions and 6981 deletions

View File

@@ -1,26 +1,30 @@
{ stdenv, buildPythonPackage, fetchPypi
, cython, pytest, numpy, scipy, matplotlib, pandas, tabulate }:
{ lib, buildPythonPackage, fetchPypi
, pytest, numpy, scipy, matplotlib, pandas, tabulate, pythonOlder }:
buildPythonPackage rec {
pname = "acoustics";
version = "0.1.2";
version = "0.2.0.post2";
buildInputs = [ cython pytest ];
checkInputs = [ pytest ];
propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
src = fetchPypi {
inherit pname version;
sha256 = "b75a47de700d01e704de95953a6e969922b2f510d7eefe59f7f8980ad44ad1b7";
sha256 = "c0ca4d7ca67fd867c3a7e34232a98a1fc210ee7ff845f3d2eed445a01737b2ff";
};
# Tests not distributed
doCheck = false;
checkPhase = ''
pushd tests
py.test ./.
popd
'';
meta = with stdenv.lib; {
disabled = pythonOlder "3.6";
meta = with lib; {
description = "A package for acousticians";
maintainers = with maintainers; [ fridh ];
license = with licenses; [ bsd3 ];
homepage = https://github.com/python-acoustics/python-acoustics;
broken = true;
};
}

View File

@@ -0,0 +1,31 @@
{ lib
, fetchPypi
, buildPythonPackage
, isPy3k
, aiolifx
}:
buildPythonPackage rec {
pname = "aiolifx-effects";
version = "0.2.1";
src = fetchPypi {
inherit version;
pname = "aiolifx_effects";
sha256 = "cb4ac52deeb220783fc6449251cf40833fcffa28648270be64b1b3e83e06b503";
};
# tests are not implemented
doCheck = false;
disabled = !isPy3k;
propagatedBuildInputs = [ aiolifx ];
meta = with lib; {
homepage = https://github.com/amelchio/aiolifx_effects;
license = licenses.mit;
description = "Light effects (pulse, colorloop ...) for LIFX lights running on aiolifx";
maintainers = with maintainers; [ netixx ];
};
}

View File

@@ -0,0 +1,31 @@
{ lib
, fetchPypi
, buildPythonPackage
, isPy3k
, ifaddr
, bitstring
}:
buildPythonPackage rec {
pname = "aiolifx";
version = "0.6.7";
src = fetchPypi {
inherit pname version;
sha256 = "cf53c9faea6eee25a466e73eef1753b82a75c7497648149c19c15342df2678f2";
};
# tests are not implemented
doCheck = false;
disabled = !isPy3k;
propagatedBuildInputs = [ bitstring ifaddr ];
meta = with lib; {
homepage = http://github.com/frawau/aiolifx;
license = licenses.mit;
description = "API for local communication with LIFX devices over a LAN with asyncio";
maintainers = with maintainers; [ netixx ];
};
}

View File

@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "aiorpcx";
version = "0.10.2";
version = "0.10.4";
src = fetchPypi {
inherit version;
pname = "aiorpcX";
sha256 = "1p88k15jh0d2a18pnnbfcamsqi2bxvmmhpizmdlxfdxf8vy5ggyj";
sha256 = "15jhklvl0ncy3mb2h9zkahky9fzzr1amgjylm2k3mvlpyn2dbpz6";
};
propagatedBuildInputs = [ attrs ];

View File

@@ -0,0 +1,18 @@
{ stdenv, fetchPypi, buildPythonPackage }:
buildPythonPackage rec {
pname = "beanstalkc";
version = "0.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "98978e57797320146f4b233286d9a02f65d20bad0168424118839fc608085280";
};
meta = {
description = "A simple beanstalkd client library for Python";
maintainers = with stdenv.lib.maintainers; [ aanderse ];
license = with stdenv.lib.licenses; [ asl20 ];
homepage = https://github.com/earl/beanstalkc;
};
}

View File

@@ -1,4 +1,5 @@
{ stdenv
, libev
, buildPythonPackage
, fetchPypi
, pkgs
@@ -24,10 +25,25 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "42bcb167a90da6604081872ef609a327a63273842da81120fc462de031155abe";
sha256 = "1gjs2lqy0ba6zhh13a1dhirk59i7lc4zcbl7h50619hdm5kv3g22";
};
buildInputs = [ pkgs.libev cython ];
buildInputs = [
libev
];
nativeBuildInputs = [
# NOTE: next version will work with cython 0.29
# Requires 'Cython!=0.25,<0.29,>=0.20'
(cython.overridePythonAttrs(old: rec {
pname = "Cython";
version = "0.28.3";
src = fetchPypi {
inherit pname version;
sha256 = "1aae6d6e9858888144cea147eb5e677830f45faaff3d305d77378c3cba55f526";
};
}))
];
propagatedBuildInputs = [ six ]
++ stdenv.lib.optionals (pythonOlder "3.4") [ futures ];

View File

@@ -30,6 +30,8 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [ six ];
__darwinAllowLocalNetworking = true;
meta = with stdenv.lib; {
homepage = "https://falcao.it/HTTPretty/";
description = "HTTP client request mocking tool";

View File

@@ -9,7 +9,7 @@ buildPythonPackage rec {
src = fetchurl {
url = "mirror://pypi/l/llfuse/${name}.tar.bz2";
sha256 = "31a267f7ec542b0cd62e0f1268e1880fdabf3f418ec9447def99acfa6eff2ec9";
sha256 = "1j9fzxpgmb4rxxyl9jcf84zvznhgi3hnh4hg5vb0qaslxkvng8ii";
};
nativeBuildInputs = [ pkgconfig ];
@@ -24,7 +24,7 @@ buildPythonPackage rec {
meta = with stdenv.lib; {
description = "Python bindings for the low-level FUSE API";
homepage = https://code.google.com/p/python-llfuse/;
homepage = https://github.com/python-llfuse/python-llfuse;
license = licenses.lgpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];

View File

@@ -2,14 +2,14 @@
buildPythonPackage rec {
pname = "mail-parser";
version = "3.4.1";
version = "3.9.2";
# no tests in PyPI tarball
src = fetchFromGitHub {
owner = "SpamScope";
repo = pname;
rev = "v${version}";
sha256 = "0nxilshq4gwpicdklja9p275yf8l5kr1lk620c3cx9w4qai4cmbv";
sha256 = "0f515a8r3qz3i2cm4lvs5aw59193jl9mk7bmaj9545n4miyar4nr";
};
LC_ALL = "en_US.utf-8";

View File

@@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, docutils
, jinja2
, nbconvert
, nbformat
, sphinx
, traitlets
, python
}:
buildPythonPackage rec {
pname = "nbsphinx";
version = "0.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "b794219e465b3aab500b800884ff40fd152bb19d8b6f87580de1f3a07170aef8";
};
propagatedBuildInputs = [
docutils
jinja2
nbconvert
nbformat
sphinx
traitlets
];
checkPhase = ''
${python.interpreter} -m nbsphinx
'';
meta = with lib; {
description = "Jupyter Notebook Tools for Sphinx";
homepage = https://nbsphinx.readthedocs.io/;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -32,6 +32,6 @@ buildPythonPackage rec {
description = "Python interface to Graphviz graph drawing package";
homepage = https://github.com/pygraphviz/pygraphviz;
license = licenses.bsd3;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ matthiasbeyer ];
};
}

View File

@@ -0,0 +1,59 @@
{ lib, buildPythonPackage, fetchPypi,
nose, dbus, dbus-python, pygobject3,
which, pyflakes, pycodestyle, bluez, networkmanager
}:
buildPythonPackage rec {
pname = "python-dbusmock";
version = "0.18.1";
src = fetchPypi {
inherit pname version;
sha256 = "1hj02p65cic4jdc6a5xf1hx8j5icwy7dcrm5kg91lkjks4gwpg5h";
};
prePatch = ''
sed -i -e 's|pyflakes3|pyflakes|g' tests/test_code.py;
'';
# TODO: Get the rest of these tests running?
# This is a mocking library used as a check dependency for a single derivation.
# That derivation's tests pass. Maybe not worth the effort to fix these...
NOSE_EXCLUDE = lib.concatStringsSep "," [
"test_bluez4" # NixOS ships BlueZ5
# These appear to fail because they're expecting to run in an Ubuntu chroot?
"test_everything" # BlueZ5 OBEX
"test_polkitd"
"test_consolekit"
"test_api"
"test_logind"
"test_notification_daemon"
"test_ofono"
"test_gnome_screensaver"
"test_cli"
"test_timedated"
"test_upower"
# Very slow, consider disabling?
# "test_networkmanager"
];
checkInputs = [
nose dbus dbus-python which pycodestyle pyflakes
pygobject3 bluez bluez.test networkmanager
];
checkPhase = ''
runHook preCheck
export PATH="$PATH:${bluez.test}/test";
nosetests -v
runHook postCheck
'';
meta = with lib; {
description = "Mock D-Bus objects for tests";
homepage = https://github.com/martinpitt/python-dbusmock;
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ callahad ];
platforms = platforms.linux;
};
}

View File

@@ -6,14 +6,14 @@
buildPythonPackage rec {
pname = "rasterio";
version = "1.0.15";
version = "1.0.18";
# Pypi doesn't ship the tests, so we fetch directly from GitHub
src = fetchFromGitHub {
owner = "mapbox";
repo = "rasterio";
rev = version;
sha256 = "0waxkqdkaxxmqnkpj397niq193l2bg8s9isal4c7q12jbm6mf7f7";
sha256 = "05miivbn2c5slc5nn7fpdn1da42qwzg4z046i71f4r70bc49vsj9";
};
checkInputs = [ boto3 pytest pytestcov packaging hypothesis ];

View File

@@ -29,7 +29,7 @@ buildPythonPackage rec {
meta = {
description = "A toolbelt of useful classes and functions to be used with python-requests";
homepage = http://toolbelt.rtfd.org;
maintainers = with lib.maintainers; [ jgeerds ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ matthiasbeyer jgeerds ];
};
}
}

View File

@@ -0,0 +1,43 @@
{ lib, buildPythonPackage, fetchPypi, wheel, setuptools, packaging
, cmake, ninja, cython, codecov, coverage, six, virtualenv, pathpy
, pytest, pytestcov, pytest-virtualenv, pytest-mock, pytestrunner
, requests, flake8 }:
buildPythonPackage rec {
pname = "scikit-build";
version = "0.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "1hh275lj98wgwi53mr9fqk8wh1dajjksch52xjax6a79gld4391a";
};
# Fixes incorrect specified requirement (part of next release)
patches = [ ./fix_pytestrunner_req.patch ];
propagatedBuildInputs = [ wheel setuptools packaging ];
checkInputs = [
cmake ninja cython codecov coverage six virtualenv pathpy
pytest pytestcov pytest-mock pytest-virtualenv pytestrunner
requests flake8
];
disabledTests = lib.concatMapStringsSep " and " (s: "not " + s) ([
"test_hello_develop" # tries setuptools develop install
"test_wheel" # pip has no way to install missing dependencies
"test_fortran_compiler" # passes if gfortran is available
"test_install_command" # tries to alter out path
"test_test_command" # tries to alter out path
]);
checkPhase = ''
py.test -k '${disabledTests}'
'';
meta = with lib; {
homepage = http://scikit-build.org/;
description = "Improved build system generator for CPython C/C++/Fortran/Cython extensions";
license = with licenses; [ mit bsd2 ]; # BSD due to reuses of PyNE code
maintainers = [ maintainers.FlorianFranzen ];
};
}

View File

@@ -0,0 +1,13 @@
diff --git a/setup.py b/setup.py
index dd348fa..4de89c6 100755
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ with open('requirements-dev.txt', 'r') as fp:
dev_requirements = list(filter(bool, (line.strip() for line in fp)))
# Require pytest-runner only when running tests
-pytest_runner = (['pytest-runner>=2.0,<3dev']
+pytest_runner = (['pytest-runner>=2.0']
if any(arg in sys.argv for arg in ('pytest', 'test'))
else [])

View File

@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "telethon";
version = "1.5.4";
version = "1.5.5";
src = fetchPypi {
inherit version;
pname = "Telethon";
sha256 = "52cb4929bf37c98ab5f3e173325dbb3cb9c1ca3f4fe6ba87d35c43e2f98858ce";
sha256 = "1qpc4vc3lidhlp1c7521nxizjr6y5c3l9x41knqv02x8n3l9knxa";
};
propagatedBuildInputs = [

View File

@@ -3,13 +3,13 @@
buildPythonPackage rec {
pname = "twilio";
version = "6.23.1";
version = "6.24.0";
# tests not included in PyPi, so fetch from github instead
src = fetchFromGitHub {
owner = "twilio";
repo = "twilio-python";
rev = version;
sha256 = "0f6r2qcgcg4pnnsgf9d1k03ri7h7k8kpasp9mdgv421a4rvqh8lm";
sha256 = "16lxns59fms75swfjz46484464q4b1fw3ybf8f2k56aas9gyzb2j";
};
buildInputs = [ nose mock ];

View File

@@ -0,0 +1,41 @@
{lib, fetchFromGitHub, python, pythonOlder, buildPythonPackage, gfortran, mock, xarray, wrapt, numpy, netcdf4}:
buildPythonPackage rec {
pname = "wrf-python";
version = "1.3.1.1";
src = fetchFromGitHub {
owner = "NCAR";
repo = "wrf-python";
rev = version;
sha256 = "12mm7x1r5md6x28vmwyh6k655pgsv6knj8ycmjbxxk8bk7qsj74h";
};
propagatedBuildInputs = [
wrapt
numpy
xarray
];
buildInputs = [
gfortran
] ++ lib.optional (pythonOlder "3.3") mock;
checkInputs = [
netcdf4
];
doCheck = true;
checkPhase = ''
runHook preCheck
cd ./test/ci_tests
python utests.py
runHook postCheck
'';
meta = {
description = "WRF postprocessing library for Python";
homepage = http://wrf-python.rtfd.org;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ mhaselsteiner ];
};
}