3
0
Fork 0
forked from mirrors/nixpkgs

Merge remote-tracking branch 'upstream/master' into HEAD

This commit is contained in:
Frederik Rietdijk 2017-10-30 07:51:09 +01:00
commit 6d41ae55dd
43 changed files with 801 additions and 528 deletions

View file

@ -116,6 +116,7 @@
christopherpoole = "Christopher Mark Poole <mail@christopherpoole.net>";
ciil = "Simon Lackerbauer <simon@lackerbauer.com>";
ckampka = "Christian Kampka <christian@kampka.net>";
ckauhaus = "Christian Kauhaus <christian@kauhaus.de>";
cko = "Christine Koppelt <christine.koppelt@gmail.com>";
cleverca22 = "Michael Bishop <cleverca22@gmail.com>";
cmcdragonkai = "Roger Qiu <roger.qiu@matrix.ai>";
@ -135,6 +136,7 @@
cryptix = "Henry Bubert <cryptix@riseup.net>";
CrystalGamma = "Jona Stubbe <nixos@crystalgamma.de>";
cstrahan = "Charles Strahan <charles@cstrahan.com>";
csingley = "Christopher Singley <csingley@gmail.com>";
cwoac = "Oliver Matthews <oliver@codersoffortune.net>";
DamienCassou = "Damien Cassou <damien@cassou.me>";
danbst = "Danylo Hlynskyi <abcz2.uprola@gmail.com>";

View file

@ -140,6 +140,11 @@
the GRUB boot loader is to be installed. Without it, NixOS cannot
boot.</para>
<para>If there are other operating systems running on the machine before
installing NixOS, the
<option>boot.loader.grub.useOSProber</option> option can be set to
<literal>true</literal> to automatically add them to the grub menu.</para>
<para>Another critical option is <option>fileSystems</option>,
specifying the file systems that need to be mounted by NixOS.
However, you typically dont need to set it yourself, because

View file

@ -328,6 +328,7 @@
./services/misc/parsoid.nix
./services/misc/phd.nix
./services/misc/plex.nix
./services/misc/plexpy.nix
./services/misc/pykms.nix
./services/misc/radarr.nix
./services/misc/redmine.nix

View file

@ -0,0 +1,81 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.services.plexpy;
in
{
options = {
services.plexpy = {
enable = mkEnableOption "PlexPy Plex Monitor";
dataDir = mkOption {
type = types.str;
default = "/var/lib/plexpy";
description = "The directory where PlexPy stores its data files.";
};
configFile = mkOption {
type = types.str;
default = "/var/lib/plexpy/config.ini";
description = "The location of PlexPy's config file.";
};
port = mkOption {
type = types.int;
default = 8181;
description = "TCP port where PlexPy listens.";
};
user = mkOption {
type = types.str;
default = "plexpy";
description = "User account under which PlexPy runs.";
};
group = mkOption {
type = types.str;
default = "nogroup";
description = "Group under which PlexPy runs.";
};
package = mkOption {
type = types.package;
default = pkgs.plexpy;
defaultText = "pkgs.plexpy";
description = ''
The PlexPy package to use.
'';
};
};
};
config = mkIf cfg.enable {
systemd.services.plexpy = {
description = "PlexPy Plex Monitor";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
preStart = ''
test -d "${cfg.dataDir}" || {
echo "Creating initial PlexPy data directory in \"${cfg.dataDir}\"."
mkdir -p "${cfg.dataDir}"
chown ${cfg.user}:${cfg.group} "${cfg.dataDir}"
}
'';
serviceConfig = {
Type = "simple";
User = cfg.user;
Group = cfg.group;
PermissionsStartOnly = "true";
GuessMainPID = "false";
ExecStart = "${cfg.package}/bin/plexpy --datadir ${cfg.dataDir} --config ${cfg.configFile} --port ${toString cfg.port} --pidfile ${cfg.dataDir}/plexpy.pid --nolaunch";
Restart = "on-failure";
};
};
users.extraUsers = mkIf (cfg.user == "plexpy") {
plexpy = { group = cfg.group; uid = config.ids.uids.plexpy; };
};
};
}

View file

@ -1,24 +0,0 @@
name: args:
{ mkDerivation, cmake, extra-cmake-modules, gettext, kdoctools }:
mkDerivation (args // {
sname = "kde-l10n-${name}";
name = "kde-l10n-${name}-qt5";
outputs = [ "out" ];
nativeBuildInputs =
[ cmake extra-cmake-modules gettext kdoctools ]
++ (args.nativeBuildInputs or []);
preConfigure = ''
sed -e 's/add_subdirectory(4)//' -i CMakeLists.txt
${args.preConfigure or ""}
'';
preFixup = ''
propagatedBuildInputs=
propagatedNativeBuildInputs=
'';
})

View file

@ -3,7 +3,6 @@
let
kdeLocale4 = import ./kde-locale-4.nix;
kdeLocale5 = import ./kde-locale-5.nix;
in

View file

@ -103,7 +103,7 @@ stdenv.mkDerivation rec {
homepage = http://mupdf.com;
repositories.git = git://git.ghostscript.com/mupdf.git;
description = "Lightweight PDF, XPS, and E-book viewer and toolkit written in portable C";
license = licenses.gpl3Plus;
license = licenses.agpl3Plus;
maintainers = with maintainers; [ viric vrthra fpletz ];
platforms = platforms.linux;
};

View file

@ -3,14 +3,14 @@
, glib_networking }:
stdenv.mkDerivation rec {
version = "1.6";
version = "1.7.1";
name = "corebird-${version}";
src = fetchFromGitHub {
owner = "baedert";
repo = "corebird";
rev = version;
sha256 = "1bxjlamdy5d2j3xdahmxf6lwc7f6xdfxbzi712ppvh1dwggw654v";
sha256 = "1g6wkzrl6j0mmgafpv0jpqa906s1x7p5hmiqdgs9qwm7q2wlwrqd";
};
preConfigure = ''

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
name = "chez-scheme-${version}";
version = "9.4-${dver}";
dver = "20160507";
version = "9.5-${dver}";
dver = "20171012";
src = fetchgit {
url = "https://github.com/cisco/chezscheme.git";
rev = "65df1d1f7c37f5b5a93cd7e5b475dda9dbafe03c";
sha256 = "1b273il3njnn04z55w1hnygvcqllc6p5qg9mcwh10w39fwsd8fbs";
rev = "adb3b7bb22ddaa1ba91b98b6f4a647427c3a4d9b";
sha256 = "0hiynf7g0q77ipqxjsqdm2zb0m15bl1hhp615fn3i2hv0qz5a4xr";
fetchSubmodules = true;
};
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
*/
patchPhase = ''
substituteInPlace ./configure \
--replace "git submodule init && git submodule update || exit 1" ""
--replace "git submodule init && git submodule update || exit 1" "true"
substituteInPlace ./workarea \
--replace "/bin/ln" "${coreutils}/bin/ln" \

View file

@ -1,11 +1,6 @@
{ stdenv, fetchFromGitHub, autoreconfHook, coq, ocamlPackages }:
let param = {
"8.7" = {
version = "0.6.1";
rev = "c3b87af6bfa338e18b83f014ebd0e56e1f611663";
sha256 = "1jaafkwsb5450378nprjsds1illgdaq60gryi8kspw0i25ykz2c9";
};
"8.6" = {
version = "0.6.1";
rev = "c3b87af6bfa338e18b83f014ebd0e56e1f611663";

View file

@ -5,11 +5,11 @@
stdenv.mkDerivation rec {
name = "lua-${version}";
luaversion = "5.3";
version = "${luaversion}.0";
version = "${luaversion}.4";
src = fetchurl {
url = "http://www.lua.org/ftp/${name}.tar.gz";
sha256 = "00fv1p6dv4701pyjrlvkrr6ykzxqy9hy1qxzj6qmwlb0ssr5wjmf";
url = "https://www.lua.org/ftp/${name}.tar.gz";
sha256 = "0320a8dg3aci4hxla380dx1ifkw8gj4gbw5c4dz41g1kh98sm0gn";
};
nativeBuildInputs = [ readline ];

View file

@ -0,0 +1,26 @@
{ stdenv, fetchPypi, buildPythonPackage, pycodestyle }:
buildPythonPackage rec {
pname = "autopep8";
version = "1.3.3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0c1gl648g2xnz3j0rsp71ld4i32zlglmqjvqf4q8r08jp3zpny7z";
};
propagatedBuildInputs = [ pycodestyle ];
# One test fails:
# FAIL: test_recursive_should_not_crash_on_unicode_filename (test.test_autopep8.CommandLineTests)
doCheck = false;
meta = with stdenv.lib; {
description = "A tool that automatically formats Python code to conform to the PEP 8 style guide";
homepage = https://pypi.python.org/pypi/autopep8/;
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,30 @@
{ stdenv, fetchurl, buildPythonPackage, pep8, nose, unittest2, docutils
, pillow, webcolors, funcparserlib
}:
buildPythonPackage rec {
name = "blockdiag-${version}";
version = "1.5.3";
src = fetchurl {
url = "https://bitbucket.org/blockdiag/blockdiag/get/${version}.tar.bz2";
sha256 = "0r0qbmv0ijnqidsgm2rqs162y9aixmnkmzgnzgk52hiy7ydm4k8f";
};
buildInputs = [ pep8 nose unittest2 docutils ];
propagatedBuildInputs = [ pillow webcolors funcparserlib ];
# One test fails:
# ...
# FAIL: test_auto_font_detection (blockdiag.tests.test_boot_params.TestBootParams)
doCheck = false;
meta = with stdenv.lib; {
description = "Generate block-diagram image from spec-text file (similar to Graphviz)";
homepage = http://blockdiag.com/;
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchurl, pygments, greenlet, curtsies, urwid, requests, mock }:
buildPythonPackage rec {
pname = "bpython";
version = "0.17";
name = "${pname}-${version}";
# 0.17 is still missing on PyPI, https://github.com/bpython/bpython/issues/706
src = fetchurl {
url = "https://bpython-interpreter.org/releases/${pname}-${version}.tar.gz";
sha256 = "13fyyx06645ikvmj9zmkixr12kzk1c3a3f9s9i2rvaczjycn82lz";
};
propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];
checkInputs = [ mock ];
# tests fail: https://github.com/bpython/bpython/issues/712
doCheck = false;
meta = with stdenv.lib; {
description = "A fancy curses interface to the Python interactive interpreter";
homepage = "https://bpython-interpreter.org/";
license = licenses.mit;
maintainers = with maintainers; [ flokli ];
};
}

View file

@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pythonOlder }:
buildPythonPackage rec {
name = "construct-${version}";
version = "2.8.16";
src = fetchFromGitHub {
owner = "construct";
repo = "construct";
rev = "v${version}";
sha256 = "0lzz1dy419n254qccch7yx4nkpwd0fsyjhnsnaf6ysgwzqxxv63j";
};
propagatedBuildInputs = [ six ];
# Tests fail with the following error on Python 3.5+
# TypeError: not all arguments converted during string formatting
doCheck = pythonOlder "3.5";
meta = with stdenv.lib; {
description = "Powerful declarative parser (and builder) for binary data";
homepage = http://construct.readthedocs.org/;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, pytest, wcwidth }:
buildPythonPackage rec {
pname = "curtsies";
version = "0.2.11";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1vljmw3sy6lrqahhpyg4gk13mzcx3mwhvg8s41698ms3cpgkjipc";
};
propagatedBuildInputs = [ blessings wcwidth pyte ];
checkInputs = [ nose mock pytest ];
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
description = "Curses-like terminal wrapper, with colored strings!";
homepage = https://pypi.python.org/pypi/curtsies;
license = licenses.mit;
maintainers = with maintainers; [ flokli ];
};
}

View file

@ -0,0 +1,20 @@
{ stdenv, fetchPypi, buildPythonPackage }:
buildPythonPackage rec {
pname = "dpkt";
version = "1.9.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0rr9ygczhxkfb61778jx0cxs0sq46zwlcj5l3wn6xmd3iy3yx9y6";
};
meta = with stdenv.lib; {
description = "Fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols";
homepage = https://code.google.com/p/dpkt/;
license = licenses.bsd3;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.all;
};
}

View file

@ -0,0 +1,36 @@
{ stdenv, fetchurl, buildPythonPackage, isPyPy, python, libev, greenlet }:
buildPythonPackage rec {
name = "gevent-1.1.2";
src = fetchurl {
url = "mirror://pypi/g/gevent/${name}.tar.gz";
sha256 = "cb15cf73d69a2eeefed330858f09634e2c50bf46da9f9e7635730fcfb872c02c";
};
# Why do we have this patch?
postPatch = ''
substituteInPlace libev/ev.c --replace \
"ecb_inline void ecb_unreachable (void) ecb_noreturn" \
"ecb_inline ecb_noreturn void ecb_unreachable (void)"
'';
buildInputs = [ libev ];
propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ];
checkPhase = ''
cd greentest
${python.interpreter} testrunner.py
'';
# Bunch of failures.
doCheck = false;
meta = with stdenv.lib; {
description = "Coroutine-based networking library";
homepage = http://www.gevent.org/;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,32 @@
{ stdenv, fetchurl, buildPythonPackage, pkgconfig, pytest, fuse, attr, which
, contextlib2
}:
buildPythonPackage rec {
name = "llfuse-1.0";
src = fetchurl {
url = "mirror://pypi/l/llfuse/${name}.tar.bz2";
sha256 = "1li7q04ljrvwharw4fblcbfhvk6s0l3lnv8yqb4c22lcgbkiqlps";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ pytest fuse attr which ];
propagatedBuildInputs = [ contextlib2 ];
checkPhase = ''
py.test
'';
# FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin'
doCheck = false;
meta = with stdenv.lib; {
description = "Python bindings for the low-level FUSE API";
homepage = https://code.google.com/p/python-llfuse/;
license = licenses.lgpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,27 @@
{ stdenv, fetchurl, buildPythonPackage, pep8, nose, unittest2, docutils
, blockdiag
}:
buildPythonPackage rec {
name = "nwdiag-1.0.3";
src = fetchurl {
url = "mirror://pypi/n/nwdiag/${name}.tar.gz";
sha256 = "0n7ary1fngxk8bk15vabc8fhnmxlh098piciwaviwn7l4a5q1zys";
};
buildInputs = [ pep8 nose unittest2 docutils ];
propagatedBuildInputs = [ blockdiag ];
# tests fail
doCheck = false;
meta = with stdenv.lib; {
description = "Generate network-diagram image from spec-text file (similar to Graphviz)";
homepage = http://blockdiag.com/;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -1,5 +1,5 @@
{ stdenv, buildPythonPackage, fetchPypi,
ofxhome, ofxparse, beautifulsoup, lxml, keyring
ofxhome, ofxparse, beautifulsoup4, lxml, keyring
}:
buildPythonPackage rec {
@ -19,7 +19,7 @@ buildPythonPackage rec {
# ImportError: No module named tests
doCheck = false;
propagatedBuildInputs = [ ofxhome ofxparse beautifulsoup lxml keyring ];
propagatedBuildInputs = [ ofxhome ofxparse beautifulsoup4 lxml keyring ];
meta = with stdenv.lib; {
homepage = https://github.com/captin411/ofxclient;

View file

@ -0,0 +1,26 @@
{ stdenv, fetchPypi, buildPythonPackage, numpy, isPy3k, dateutil, dateutil_1_5 }:
buildPythonPackage rec {
pname = "pycollada";
version = "0.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1g96maw2c25l4i3ks51784h33zf7s18vrn6iyz4ca34iy4sl7yq9";
};
buildInputs = [ numpy ] ++ (if isPy3k then [dateutil] else [dateutil_1_5]);
# Some tests fail because they refer to test data files that don't exist
# (upstream packaging issue)
doCheck = false;
meta = with stdenv.lib; {
description = "Python library for reading and writing collada documents";
homepage = http://pycollada.github.io/;
license = "BSD"; # they don't specify which BSD variant
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,29 @@
{ stdenv, fetchurl, buildPythonPackage, libev }:
buildPythonPackage rec {
name = "pyev-0.9.0";
src = fetchurl {
url = "mirror://pypi/p/pyev/${name}.tar.gz";
sha256 = "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx";
};
buildInputs = [ libev ];
libEvSharedLibrary =
if !stdenv.isDarwin
then "${libev}/lib/libev.so.4"
else "${libev}/lib/libev.4.dylib";
postPatch = ''
test -f "${libEvSharedLibrary}" || { echo "ERROR: File ${libEvSharedLibrary} does not exist, please fix nix expression for pyev"; exit 1; }
sed -i -e "s|libev_dll_name = find_library(\"ev\")|libev_dll_name = \"${libEvSharedLibrary}\"|" setup.py
'';
meta = with stdenv.lib; {
description = "Python bindings for libev";
homepage = https://code.google.com/p/pyev/;
license = licenses.gpl3;
maintainers = [ maintainers.bjornfor ];
};
}

View file

@ -0,0 +1,19 @@
{ stdenv, fetchurl, buildPythonPackage, isPy3k }:
buildPythonPackage rec {
name = "Pyro-3.16";
disabled = isPy3k;
src = fetchurl {
url = "mirror://pypi/P/Pyro/${name}.tar.gz";
sha256 = "1bed508453ef7a7556b51424a58101af2349b662baab7e7331c5cb85dbe7e578";
};
meta = with stdenv.lib; {
description = "Distributed object middleware for Python (IPC/RPC)";
homepage = http://pythonhosted.org/Pyro/;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,28 @@
{ stdenv, buildPythonPackage, fetchPypi, pytest, pytestrunner, wcwidth }:
buildPythonPackage rec {
pname = "pyte";
version = "0.7.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1an54hvyjm8gncx8cgabz9mkpgjkdb0bkyjlkh7g7f94nr3wnfl7";
};
propagatedBuildInputs = [ wcwidth ];
checkInputs = [ pytest pytestrunner ];
# tries to write to os.path.dirname(__file__) in test_input_output
checkPhase = ''
py.test -k "not test_input_output"
'';
meta = with stdenv.lib; {
description = "Simple VTXXX-compatible linux terminal emulator";
homepage = https://github.com/selectel/pyte;
license = licenses.lgpl3;
maintainers = with maintainers; [ flokli ];
};
}

View file

@ -0,0 +1,32 @@
{ stdenv, fetchPypi, buildPythonPackage, libusb, libusb1 }:
buildPythonPackage rec {
pname = "pyusb";
version = "1.0.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0qkk2jn270jwwl1x26hmdhb14m9kkbrzzwzizdjcl1a29b6756sf";
};
# Fix the USB backend library lookup
postPatch =
''
libusb=${libusb1.out}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}
test -f $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; }
sed -i -e "s|find_library=None|find_library=lambda _:\"$libusb\"|" usb/backend/libusb1.py
'';
propagatedBuildInputs = [ libusb ];
# No tests included
doCheck = false;
meta = with stdenv.lib; {
description = "Python USB access module (wraps libusb 1.0)"; # can use other backends
homepage = http://pyusb.sourceforge.net/;
license = licenses.bsd3;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
}:
buildPythonPackage rec {
pname = "requests_download";
version = "0.1.1";
name = "${pname}-${version}";
format = "wheel";
#src = pkgs.fetchurl {
# url = https://files.pythonhosted.org/packages/60/af/10f899f0574a81cbc511124c08d7c7dc46c20d4f956a6a3c793ad4330bb4/requests_download-0.1.1-py2.py3-none-any.whl;
# sha256 = "07832a93314bcd619aaeb08611ae245728e66672efb930bc2a300a115a47dab7";
#};
src = fetchPypi {
inherit pname version format;
sha256 = "07832a93314bcd619aaeb08611ae245728e66672efb930bc2a300a115a47dab7";
};
propagatedBuildInputs = [ requests ];
meta = {
description = "Download files using requests and save them to a target path";
homepage = https://www.github.com/takluyver/requests_download;
license = lib.licenses.mit;
maintainer = lib.maintainers.fridh;
};
}

View file

@ -0,0 +1,28 @@
{ stdenv, fetchurl, buildPythonPackage, pyparsing, argparse, robotframework }:
buildPythonPackage rec {
name = "robomachine-0.6";
src = fetchurl {
url = "mirror://pypi/R/RoboMachine/RoboMachine-0.6.tar.gz";
sha256 = "6c9a9bae7bffa272b2a09b05df06c29a3a776542c70cae8041a8975a061d2e54";
};
propagatedBuildInputs = [ pyparsing argparse robotframework ];
# Remove Windows .bat files
postInstall = ''
rm "$out/bin/"*.bat
'';
postPatch = ''
substituteInPlace setup.py --replace "argparse" ""
'';
meta = with stdenv.lib; {
description = "Test data generator for Robot Framework";
homepage = https://github.com/mkorpela/RoboMachine;
license = licenses.asl20;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,32 @@
{ stdenv, fetchurl, buildPythonPackage, isPy3k, pygments, wxPython }:
buildPythonPackage rec {
version = "1.2.3";
name = "robotframework-ride-${version}";
disabled = isPy3k;
src = fetchurl {
url = "https://robotframework-ride.googlecode.com/files/${name}.tar.gz";
sha256 = "1lf5f4x80f7d983bmkx12sxcizzii21kghs8kf63a1mj022a5x5j";
};
propagatedBuildInputs = [ pygments wxPython ];
# ride_postinstall.py checks that needed deps are installed and creates a
# desktop shortcut. We don't really need it and it clutters up bin/ so
# remove it.
postInstall = ''
rm -f "$out/bin/ride_postinstall.py"
'';
# error: invalid command 'test'
doCheck = false;
meta = with stdenv.lib; {
description = "Light-weight and intuitive editor for Robot Framework test case files";
homepage = https://code.google.com/p/robotframework-ride/;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,20 @@
{ stdenv, fetchurl, buildPythonPackage, isPy3k }:
buildPythonPackage rec {
version = "3.0.2";
name = "robotframework-${version}";
disabled = isPy3k;
src = fetchurl {
url = "mirror://pypi/r/robotframework/${name}.tar.gz";
sha256 = "1xqzxv00lxf9xi4vdxdsyd1bfmx18gi96vrnijpzj9w2aqrz4610";
};
meta = with stdenv.lib; {
description = "Generic test automation framework";
homepage = http://robotframework.org/;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,20 @@
{ stdenv, fetchurl, buildPythonPackage, isPy3k, isPyPy }:
buildPythonPackage rec {
name = "scapy-2.2.0";
disabled = isPy3k || isPyPy;
src = fetchurl {
url = "http://www.secdev.org/projects/scapy/files/${name}.tar.gz";
sha256 = "1bqmp0xglkndrqgmybpwmzkv462mir8qlkfwsxwbvvzh9li3ndn5";
};
meta = with stdenv.lib; {
description = "Powerful interactive network packet manipulation program";
homepage = http://www.secdev.org/projects/scapy/;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,29 @@
{ stdenv, fetchurl, buildPythonPackage, pep8, nose, unittest2, docutils
, blockdiag
}:
buildPythonPackage rec {
name = "seqdiag-0.9.4";
src = fetchurl {
url = "mirror://pypi/s/seqdiag/${name}.tar.gz";
sha256 = "1qa7d0m1wahvmrj95rxkb6128cbwd4w3gy8gbzncls66h46bifiz";
};
buildInputs = [ pep8 nose unittest2 docutils ];
propagatedBuildInputs = [ blockdiag ];
# Tests fail:
# ...
# ERROR: Failure: OSError ([Errno 2] No such file or directory: '/tmp/nix-build-python2.7-seqdiag-0.9.0.drv-0/seqdiag-0.9.0/src/seqdiag/tests/diagrams/')
doCheck = false;
meta = with stdenv.lib; {
description = "Generate sequence-diagram image from spec-text file (similar to Graphviz)";
homepage = http://blockdiag.com/;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,20 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage (rec {
pname = "urwid";
version = "1.3.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng";
};
meta = with stdenv.lib; {
description = "A full-featured console (xterm et al.) user interface library";
homepage = http://excess.org/urwid;
repositories.git = git://github.com/wardi/urwid.git;
license = licenses.lgpl21;
maintainers = with maintainers; [ garbas ];
};
})

View file

@ -0,0 +1,20 @@
{ stdenv, fetchurl, buildPythonPackage, pyusb }:
buildPythonPackage rec {
name = "usbtmc-${version}";
version = "0.8";
src = fetchurl {
url = "https://github.com/python-ivi/python-usbtmc/archive/v${version}.tar.gz";
sha256 = "14f4j77ljr45crnjwlp1dqbxwa45s20y2fpq5rg59r60w15al4yw";
};
propagatedBuildInputs = [ pyusb ];
meta = with stdenv.lib; {
description = "Python implementation of the USBTMC instrument control protocol";
homepage = http://alexforencich.com/wiki/en/python-usbtmc/start;
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -0,0 +1,29 @@
Tests are kind of broken in ZODB-5.3.0. Fix setup code and disable one
especially problematic test.
diff -u ZODB-5.3.0/setup.py ZODB-5.3.0/setup.py
--- ZODB-5.3.0/setup.py 2017-08-30 14:55:10.000000000 +0200
+++ ZODB-5.3.0/setup.py 2017-10-29 11:34:17.277953730 +0100
@@ -85,7 +85,10 @@
mod = __import__(
_modname(dirpath, base, os.path.splitext(filename)[0]),
{}, {}, ['*'])
- _unittests_only(suite, mod.test_suite())
+ try:
+ _unittests_only(suite, mod.test_suite())
+ except AttributeError:
+ pass
elif 'tests.py' in filenames:
mod = __import__(_modname(dirpath, base, 'tests'), {}, {}, ['*'])
_unittests_only(suite, mod.test_suite())
diff -u ZODB-5.3.0/src/ZODB/scripts/tests/test_repozo.py ZODB-5.3.0/src/ZODB/scripts/tests/test_repozo.py
--- ZODB-5.3.0/src/ZODB/scripts/tests/test_repozo.py 2017-08-30 14:55:10.000000000 +0200
+++ ZODB-5.3.0/src/ZODB/scripts/tests/test_repozo.py 2017-10-29 11:35:10.348240386 +0100
@@ -1184,7 +1184,4 @@
#unittest.makeSuite(Test_do_backup), #TODO
unittest.makeSuite(Test_do_recover),
unittest.makeSuite(Test_do_verify),
- # N.B.: this test take forever to run (~40sec on a fast laptop),
- # *and* it is non-deterministic.
- unittest.makeSuite(MonteCarloTests),
])

View file

@ -25,6 +25,10 @@ buildPythonPackage rec {
sha256 = "633c2f89481d8ebc55639b59216f7d16d07b44a94758850c0b887006967214f3";
};
patches = [
./ZODB-5.3.0-fix-tests.patch
];
propagatedBuildInputs = [
manuel
transaction

View file

@ -22,7 +22,7 @@ python3Packages.buildPythonApplication rec {
sed -i -e 's|e.fix_rpath(install_rpath)||' mesonbuild/scripts/meson_install.py
'';
setupHook = ./setup-hook.sh;
setupHook = ./setup-hook.sh;
meta = with lib; {
homepage = http://mesonbuild.com;

View file

@ -1,30 +1,10 @@
{ stdenv, fetchurl, gtk_doc, pkgconfig, gobjectIntrospection, intltool
, libgudev, polkit, appstream-glib, gusb, sqlite, libarchive
, libsoup, docbook2x, gpgme, libxslt, libelf, libsmbios, efivar
, fwupdate, libgpgerror, libyaml, valgrind, meson, libuuid, pygobject3
, pillow, ninja, gcab, makeWrapper, glib, gdk_pixbuf
, fwupdate, libyaml, valgrind, meson, libuuid, pygobject3
, pillow, ninja, gcab
}:
let version = "0.9.6";
rpath = stdenv.lib.makeLibraryPath
[ libuuid.out
appstream-glib
glib
libsoup
gdk_pixbuf
libarchive.lib
gcab
sqlite.out
gusb
polkit.out
gpgme
libgpgerror
libelf
efivar
libsmbios
fwupdate
libgudev
"$out"
];
in
stdenv.mkDerivation
{ name = "fwupd-${version}";
@ -36,18 +16,13 @@ in
[ gtk_doc pkgconfig gobjectIntrospection intltool libgudev
polkit appstream-glib gusb sqlite libarchive libsoup
docbook2x libxslt libelf libsmbios fwupdate libyaml valgrind
meson gpgme libuuid pygobject3 pillow ninja gcab makeWrapper
meson gpgme libuuid pygobject3 pillow ninja gcab
];
patches = [ ./fix-missing-deps.patch ];
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${efivar}/include/efivar"
'';
mesonFlags = [ "-Denable-colorhug=false" "-Denable-man=false" "-Denable-tests=false" "--localstatedir=/var" "-Denable-doc=false" "-Dwith-bootdir=/boot" ];
postFixup = ''
for prog in $out/bin/* $out/libexec/fwupd/*; do
wrapProgram "$prog" --prefix LD_LIBRARY_PATH : ${rpath}
done
'';
enableParallelBuilding = true;
meta =
{ license = [ stdenv.lib.licenses.gpl2 ];

View file

@ -0,0 +1,41 @@
{stdenv, fetchFromGitHub, python}:
stdenv.mkDerivation rec {
version = "1.4.25";
pname = "plexpy";
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "JonnyWong16";
repo = pname;
rev = "v${version}";
sha256 = "0a4ynrfamlwkgqil4n61v47p21czxpjdzg0mias4kdjam2nnwnjx";
};
buildPhase = ":";
installPhase = ''
mkdir -p $out
cp -R * $out/
# Remove superfluous Python checks from main script;
# prepend shebang
echo "#!${python.interpreter}" > $out/PlexPy.py
tail -n +7 PlexPy.py >> $out/PlexPy.py
mkdir $out/bin
# Can't just symlink to the main script, since it uses __file__ to
# import bundled packages and manage the service
echo "#!/bin/bash" > $out/bin/plexpy
echo "$out/PlexPy.py \$*" >> $out/bin/plexpy
chmod +x $out/bin/plexpy
'';
meta = with stdenv.lib; {
description = "A Python based monitoring and tracking tool for Plex Media Server.";
homepage = http://jonnywong16.github.io/plexpy/;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with stdenv.lib.maintainers; [ csingley ];
};
}

View file

@ -18,6 +18,7 @@ pythonPackages.buildPythonApplication rec {
click click-log click-threading
requests_toolbelt
requests
requests_oauthlib # required for google oauth sync
atomicwrites
];

View file

@ -3,19 +3,15 @@
pythonPackages.buildPythonApplication rec {
name = "${pname}-${version}";
pname = "vulnix";
version = "1.2.2";
version = "1.3.4";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "1ia9plziwach0bxnlcd33q30kcsf8sv0nf2jc78gsmrqnxjabr12";
sha256 = "1js1i86pgkkqc9yzp1rck7rmaz79klv4048r9z7v56fam0a6sg05";
};
buildInputs = with pythonPackages; [ flake8 pytest pytestcov ];
postPatch = ''
sed -i -e 's/==\([^=]\+\)/>=\1/g' setup.py
'';
propagatedBuildInputs = [
nix
] ++ (with pythonPackages; [
@ -27,12 +23,16 @@ pythonPackages.buildPythonApplication rec {
zodb
]);
postPatch = ''
sed -i -e 's/==\([^=]\+\)/>=\1/g' setup.py
'';
checkPhase = "py.test";
meta = with stdenv.lib; {
description = "NixOS vulnerability scanner";
homepage = https://github.com/flyingcircusio/vulnix;
license = licenses.bsd2;
maintainers = with maintainers; [ plumps ];
maintainers = with maintainers; [ ckauhaus plumps ];
};
}

View file

@ -3966,6 +3966,8 @@ with pkgs;
plex = callPackage ../servers/plex { enablePlexPass = config.plex.enablePlexPass or false; };
plexpy = callPackage ../servers/plexpy { python = python2; };
ploticus = callPackage ../tools/graphics/ploticus {
libpng = libpng12;
};

View file

@ -674,28 +674,7 @@ in {
};
};
autopep8 = buildPythonPackage (rec {
name = "autopep8-1.0.4";
src = pkgs.fetchurl {
url = "mirror://pypi/a/autopep8/${name}.tar.gz";
sha256 = "17lydqm8y9a5qadp6iifxrb5mb0g9fr1vxn5qy1fjpyhazxaw8n1";
};
propagatedBuildInputs = with self; [ pep8 ];
# One test fails:
# FAIL: test_recursive_should_not_crash_on_unicode_filename (test.test_autopep8.CommandLineTests)
doCheck = false;
meta = {
description = "A tool that automatically formats Python code to conform to the PEP 8 style guide";
homepage = https://pypi.python.org/pypi/autopep8/;
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ bjornfor ];
};
});
autopep8 = callPackage ../development/python-modules/autopep8 { };
av = buildPythonPackage rec {
name = "av-${version}";
@ -2033,51 +2012,9 @@ in {
};
};
blockdiag = callPackage ../development/python-modules/blockdiag { };
blockdiag = buildPythonPackage rec {
name = "blockdiag-${version}";
version = "1.5.3";
src = pkgs.fetchurl {
url = "https://bitbucket.org/blockdiag/blockdiag/get/${version}.tar.bz2";
sha256 = "0r0qbmv0ijnqidsgm2rqs162y9aixmnkmzgnzgk52hiy7ydm4k8f";
};
buildInputs = with self; [ pep8 nose unittest2 docutils ];
propagatedBuildInputs = with self; [ pillow webcolors funcparserlib ];
# One test fails:
# ...
# FAIL: test_auto_font_detection (blockdiag.tests.test_boot_params.TestBootParams)
doCheck = false;
meta = {
description = "Generate block-diagram image from spec-text file (similar to Graphviz)";
homepage = http://blockdiag.com/;
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
};
bpython = buildPythonPackage rec {
name = "bpython-0.12";
src = pkgs.fetchurl {
url = "http://www.bpython-interpreter.org/releases/bpython-0.12.tar.gz";
sha256 = "1ilf58qq7sazmcgg4f1wswbhcn2gb8qbbrpgm6gf0j2lbm60gabl";
};
propagatedBuildInputs = with self; [ pygments ];
doCheck = false;
meta = {
description = "UNKNOWN";
homepage = "UNKNOWN";
maintainers = with maintainers; [ domenkozar ];
};
};
bpython = callPackage ../development/python-modules/bpython {};
bsddb3 = buildPythonPackage rec {
name = "bsddb3-${version}";
@ -3107,33 +3044,7 @@ in {
confluent-kafka = callPackage ../development/python-modules/confluent-kafka {};
construct = buildPythonPackage rec {
name = "construct-${version}";
version = "2.8.10";
src = pkgs.fetchFromGitHub {
owner = "construct";
repo = "construct";
rev = "v${version}";
sha256 = "1xfmmc5pihn3ql9f7blrciy06y2bwczqvkbcpvh96dmgqwc3wys3";
};
propagatedBuildInputs = with self; [ six ];
# Tests fail with the following error on Python 3.5+
# TypeError: not all arguments converted during string formatting
doCheck = pythonOlder "3.5";
meta = {
description = "Powerful declarative parser (and builder) for binary data";
homepage = http://construct.readthedocs.org/;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
};
construct = callPackage ../development/python-modules/construct {};
consul = buildPythonPackage (rec {
name = "python-consul-0.7.0";
@ -3324,6 +3235,8 @@ in {
doCheck = false;
};
curtsies = callPackage ../development/python-modules/curtsies { };
oslo-vmware = buildPythonPackage rec {
name = "oslo.vmware-${version}";
version = "1.22.0";
@ -3730,28 +3643,7 @@ in {
cffi = callPackage ../development/python-modules/cffi { };
pycollada = buildPythonPackage rec {
name = "pycollada-0.4.1";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pycollada/${name}.tar.gz";
sha256 = "0i50lh98550pwr95zgzrgiqzsspm09wl52xlv83y5nrsz4mblylv";
};
buildInputs = with self; [ numpy ] ++ (if isPy3k then [dateutil] else [dateutil_1_5]);
# Some tests fail because they refer to test data files that don't exist
# (upstream packaging issue)
doCheck = false;
meta = {
description = "Python library for reading and writing collada documents";
homepage = http://pycollada.github.io/;
license = "BSD"; # they don't specify which BSD variant
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ bjornfor ];
};
};
pycollada = callPackage ../development/python-modules/pycollada { };
pycontracts = buildPythonPackage rec {
version = "1.7.9";
@ -5014,26 +4906,7 @@ in {
};
};
dpkt = buildPythonPackage rec {
name = "dpkt-1.8";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "https://dpkt.googlecode.com/files/${name}.tar.gz";
sha256 = "01q5prynymaqyfsfi2296xncicdpid2hs3yyasim8iigvkwy4vf5";
};
# error: invalid command 'test'
doCheck = false;
meta = {
description = "Fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols";
homepage = https://code.google.com/p/dpkt/;
license = licenses.bsd3;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.all;
};
};
dpkt = callPackage ../development/python-modules/dpkt {};
urllib3 = callPackage ../development/python-modules/urllib3 {};
@ -9572,40 +9445,7 @@ in {
};
};
gevent = buildPythonPackage rec {
name = "gevent-1.1.2";
src = pkgs.fetchurl {
url = "mirror://pypi/g/gevent/${name}.tar.gz";
sha256 = "cb15cf73d69a2eeefed330858f09634e2c50bf46da9f9e7635730fcfb872c02c";
};
# Why do we have this patch?
postPatch = ''
substituteInPlace libev/ev.c --replace \
"ecb_inline void ecb_unreachable (void) ecb_noreturn" \
"ecb_inline ecb_noreturn void ecb_unreachable (void)"
'';
buildInputs = with self; [ pkgs.libev ];
propagatedBuildInputs = with self; optionals (!isPyPy) [ greenlet ];
checkPhase = ''
cd greentest
${python.interpreter} testrunner.py
'';
# Bunch of failures.
doCheck = false;
meta = {
description = "Coroutine-based networking library";
homepage = http://www.gevent.org/;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
};
gevent = callPackage ../development/python-modules/gevent { };
geventhttpclient = buildPythonPackage rec {
name = "geventhttpclient-${version}";
@ -11098,33 +10938,8 @@ in {
livereload = callPackage ../development/python-modules/livereload { };
llfuse = buildPythonPackage rec {
name = "llfuse-1.0";
src = pkgs.fetchurl {
url = "mirror://pypi/l/llfuse/${name}.tar.bz2";
sha256 = "1li7q04ljrvwharw4fblcbfhvk6s0l3lnv8yqb4c22lcgbkiqlps";
};
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = with self; [ pytest pkgs.fuse pkgs.attr pkgs.which ];
propagatedBuildInputs = with self; [ contextlib2 ];
checkPhase = ''
py.test
'';
# FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin'
doCheck = false;
meta = {
description = "Python bindings for the low-level FUSE API";
homepage = https://code.google.com/p/python-llfuse/;
license = licenses.lgpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
llfuse = callPackage ../development/python-modules/llfuse {
fuse = pkgs.fuse; # use "real" fuse, not the python module
};
locustio = buildPythonPackage rec {
@ -12364,6 +12179,8 @@ in {
};
};
pyte = callPackage ../development/python-modules/pyte { };
graphviz = buildPythonPackage rec {
name = "graphviz-${version}";
version = "0.5.2";
@ -13170,29 +12987,7 @@ in {
numtraits = callPackage ../development/python-modules/numtraits { };
nwdiag = buildPythonPackage rec {
name = "nwdiag-1.0.3";
src = pkgs.fetchurl {
url = "mirror://pypi/n/nwdiag/${name}.tar.gz";
sha256 = "0n7ary1fngxk8bk15vabc8fhnmxlh098piciwaviwn7l4a5q1zys";
};
buildInputs = with self; [ pep8 nose unittest2 docutils ];
propagatedBuildInputs = with self; [ blockdiag ];
# tests fail
doCheck = false;
meta = {
description = "Generate network-diagram image from spec-text file (similar to Graphviz)";
homepage = http://blockdiag.com/;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
};
nwdiag = callPackage ../development/python-modules/nwdiag { };
dynd = buildPythonPackage rec {
version = "0.7.2";
@ -16454,34 +16249,7 @@ in {
};
};
pyev = buildPythonPackage rec {
name = "pyev-0.9.0";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pyev/${name}.tar.gz";
sha256 = "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx";
};
buildInputs = [ pkgs.libev ];
libEvSharedLibrary =
if !stdenv.isDarwin
then "${pkgs.libev}/lib/libev.so.4"
else "${pkgs.libev}/lib/libev.4.dylib";
postPatch = ''
test -f "${libEvSharedLibrary}" || { echo "ERROR: File ${libEvSharedLibrary} does not exist, please fix nix expression for pyev"; exit 1; }
sed -i -e "s|libev_dll_name = find_library(\"ev\")|libev_dll_name = \"${libEvSharedLibrary}\"|" setup.py
'';
meta = {
description = "Python bindings for libev";
homepage = https://code.google.com/p/pyev/;
license = licenses.gpl3;
maintainers = [ maintainers.bjornfor ];
};
};
pyev = callPackage ../development/python-modules/pyev { };
pyexcelerator = buildPythonPackage rec {
name = "pyexcelerator-${version}";
@ -16998,23 +16766,7 @@ in {
};
});
Pyro = buildPythonPackage (rec {
name = "Pyro-3.16";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "mirror://pypi/P/Pyro/${name}.tar.gz";
sha256 = "1bed508453ef7a7556b51424a58101af2349b662baab7e7331c5cb85dbe7e578";
};
meta = {
description = "Distributed object middleware for Python (IPC/RPC)";
homepage = http://pythonhosted.org/Pyro/;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
});
Pyro = callPackage ../development/python-modules/pyro { };
pyrsistent = buildPythonPackage (rec {
name = "pyrsistent-0.11.12";
@ -18442,52 +18194,9 @@ in {
restructuredtext_lint = callPackage ../development/python-modules/restructuredtext_lint { };
robomachine = buildPythonPackage rec {
name = "robomachine-0.6";
src = pkgs.fetchurl {
url = "mirror://pypi/R/RoboMachine/RoboMachine-0.6.tar.gz";
sha256 = "6c9a9bae7bffa272b2a09b05df06c29a3a776542c70cae8041a8975a061d2e54";
};
propagatedBuildInputs = with self; [ pyparsing argparse robotframework ];
# Remove Windows .bat files
postInstall = ''
rm "$out/bin/"*.bat
'';
postPatch = ''
substituteInPlace setup.py --replace "argparse" ""
'';
meta = {
description = "Test data generator for Robot Framework";
homepage = https://github.com/mkorpela/RoboMachine;
license = licenses.asl20;
maintainers = with maintainers; [ bjornfor ];
};
};
robotframework = buildPythonPackage rec {
version = "3.0.2";
name = "robotframework-${version}";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "mirror://pypi/r/robotframework/${name}.tar.gz";
sha256 = "1xqzxv00lxf9xi4vdxdsyd1bfmx18gi96vrnijpzj9w2aqrz4610";
};
meta = {
description = "Generic test automation framework";
homepage = http://robotframework.org/;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
};
robomachine = callPackage ../development/python-modules/robomachine { };
robotframework = callPackage ../development/python-modules/robotframework { };
robotframework-selenium2library = buildPythonPackage rec {
version = "1.6.0";
@ -18532,36 +18241,7 @@ in {
robotsuite = callPackage ../development/python-modules/robotsuite { };
robotframework-ride = buildPythonPackage rec {
version = "1.2.3";
name = "robotframework-ride-${version}";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "https://robotframework-ride.googlecode.com/files/${name}.tar.gz";
sha256 = "1lf5f4x80f7d983bmkx12sxcizzii21kghs8kf63a1mj022a5x5j";
};
propagatedBuildInputs = with self; [ pygments wxPython ];
# ride_postinstall.py checks that needed deps are installed and creates a
# desktop shortcut. We don't really need it and it clutters up bin/ so
# remove it.
postInstall = ''
rm -f "$out/bin/ride_postinstall.py"
'';
# error: invalid command 'test'
doCheck = false;
meta = {
description = "Light-weight and intuitive editor for Robot Framework test case files";
homepage = https://code.google.com/p/robotframework-ride/;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
};
robotframework-ride = callPackage ../development/python-modules/robotframework-ride { };
robotframework-requests = buildPythonPackage rec {
version = "0.4.6";
@ -18904,31 +18584,7 @@ in {
};
};
seqdiag = buildPythonPackage rec {
name = "seqdiag-0.9.4";
src = pkgs.fetchurl {
url = "mirror://pypi/s/seqdiag/${name}.tar.gz";
sha256 = "1qa7d0m1wahvmrj95rxkb6128cbwd4w3gy8gbzncls66h46bifiz";
};
buildInputs = with self; [ pep8 nose unittest2 docutils ];
propagatedBuildInputs = with self; [ blockdiag ];
# Tests fail:
# ...
# ERROR: Failure: OSError ([Errno 2] No such file or directory: '/tmp/nix-build-python2.7-seqdiag-0.9.0.drv-0/seqdiag-0.9.0/src/seqdiag/tests/diagrams/')
doCheck = false;
meta = {
description = "Generate sequence-diagram image from spec-text file (similar to Graphviz)";
homepage = http://blockdiag.com/;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
};
seqdiag = callPackage ../development/python-modules/seqdiag { };
pysendfile = buildPythonPackage rec {
name = "pysendfile-${version}";
@ -18985,24 +18641,7 @@ in {
sampledata = callPackage ../development/python-modules/sampledata { };
scapy = buildPythonPackage rec {
name = "scapy-2.2.0";
disabled = isPy3k || isPyPy;
src = pkgs.fetchurl {
url = "http://www.secdev.org/projects/scapy/files/${name}.tar.gz";
sha256 = "1bqmp0xglkndrqgmybpwmzkv462mir8qlkfwsxwbvvzh9li3ndn5";
};
meta = {
description = "Powerful interactive network packet manipulation program";
homepage = http://www.secdev.org/projects/scapy/;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
};
scapy = callPackage ../development/python-modules/scapy { };
scipy = callPackage ../development/python-modules/scipy { };
@ -21587,25 +21226,7 @@ in {
urlgrabber = callPackage ../development/python-modules/urlgrabber {};
urwid = buildPythonPackage (rec {
name = "urwid-1.3.1";
# multiple: NameError: name 'evl' is not defined
doCheck = false;
src = pkgs.fetchurl {
url = "mirror://pypi/u/urwid/${name}.tar.gz";
sha256 = "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng";
};
meta = {
description = "A full-featured console (xterm et al.) user interface library";
homepage = http://excess.org/urwid;
repositories.git = git://github.com/wardi/urwid.git;
license = licenses.lgpl21;
maintainers = with maintainers; [ garbas ];
};
});
urwid = callPackage ../development/python-modules/urwid {};
urwidtrees = buildPythonPackage rec {
name = "urwidtrees-${rev}";
@ -23139,35 +22760,7 @@ EOF
unidecode = callPackage ../development/python-modules/unidecode {};
pyusb = buildPythonPackage rec {
name = "pyusb-1.0.0";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/8a/19/66fb48a4905e472f5dfeda3a1bafac369fbf6d6fc5cf55b780864962652d/PyUSB-1.0.0.tar.gz";
sha256 = "0s2k4z06fapd5vp1gnrlf8a9sjpc03p9974lzw5k6ky39akzyd2v";
};
# Fix the USB backend library lookup
postPatch =
''
libusb=${pkgs.libusb1.out}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}
test -f $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; }
sed -i -e "s|find_library=None|find_library=lambda _:\"$libusb\"|" usb/backend/libusb1.py
'';
propagatedBuildInputs = [ pkgs.libusb ];
# No tests included
doCheck = false;
meta = {
description = "Python USB access module (wraps libusb 1.0)"; # can use other backends
homepage = http://pyusb.sourceforge.net/;
license = licenses.bsd3;
maintainers = with maintainers; [ bjornfor ];
};
};
pyusb = callPackage ../development/python-modules/pyusb {};
BlinkStick = buildPythonPackage rec {
name = "BlinkStick-${version}";
@ -23194,25 +22787,7 @@ EOF
};
};
usbtmc = buildPythonPackage rec {
name = "usbtmc-${version}";
version = "0.6";
src = pkgs.fetchurl {
url = "https://github.com/python-ivi/python-usbtmc/archive/v${version}.tar.gz";
sha256 = "1wnw6ndc3s1i8zpbikz5zc40ijvpraqdb0xn8zmqlyn95xxfizw2";
};
propagatedBuildInputs = with self; [ pyusb ];
meta = {
description = "Python implementation of the USBTMC instrument control protocol";
homepage = http://alexforencich.com/wiki/en/python-usbtmc/start;
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
};
};
usbtmc = callPackage ../development/python-modules/usbtmc {};
txgithub = buildPythonPackage rec {
name = "${pname}-${version}";