Merge staging-next into staging
This commit is contained in:
@@ -3,21 +3,20 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "acoustics";
|
||||
version = "0.2.0.post1";
|
||||
version = "0.2.0.post2";
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "738218db41ff1b1f932eabb700e400d84141af6f29392aab5f7be1b19758f806";
|
||||
sha256 = "c0ca4d7ca67fd867c3a7e34232a98a1fc210ee7ff845f3d2eed445a01737b2ff";
|
||||
};
|
||||
|
||||
# Tests look in wrong place for test data
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
pushd tests
|
||||
py.test ./.
|
||||
popd
|
||||
'';
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
@@ -22,11 +22,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nbconvert";
|
||||
version = "5.4.0";
|
||||
version = "5.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a8a2749f972592aa9250db975304af6b7337f32337e523a2c995cc9e12c07807";
|
||||
sha256 = "302554a2e219bc0fc84f3edd3e79953f3767b46ab67626fdec16e38ba3f7efe4";
|
||||
};
|
||||
|
||||
checkInputs = [ nose pytest glibcLocales ];
|
||||
|
||||
41
pkgs/development/python-modules/nbsphinx/default.nix
Normal file
41
pkgs/development/python-modules/nbsphinx/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
59
pkgs/development/python-modules/python-dbusmock/default.nix
Normal file
59
pkgs/development/python-modules/python-dbusmock/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
@@ -26,6 +26,6 @@ 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 ];
|
||||
maintainers = with lib.maintainers; [ matthiasbeyer jgeerds ];
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user