Merge remote-tracking branch 'origin/master' into staging

This commit is contained in:
Shea Levy
2018-03-28 09:36:47 -04:00
196 changed files with 7758 additions and 4938 deletions

View File

@@ -1,17 +1,22 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k
, notmuch, urwid, urwidtrees, twisted, python_magic, configobj, pygpgme, mock, file, gpgme}:
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, isPy3k
, notmuch, urwid, urwidtrees, twisted, python_magic, configobj, mock, file, gpgme
, service-identity
, gnupg ? null, sphinx, awk ? null, procps ? null, future ? null
, withManpage ? false }:
buildPythonPackage rec {
version = "0.5.1";
pname = "alot";
version = "0.7";
outputs = [ "out" ] ++ lib.optional withManpage "man";
disabled = isPy3k;
src = fetchFromGitHub {
owner = "pazz";
repo = pname;
rev = "version";
sha256 = "0ipkhc5wllfq78lg47aiq4qih0yjq8ad9xkrbgc88xk8pk9166i8";
repo = "alot";
rev = "${version}";
sha256 = "1y932smng7qx7ybmqw4qh75b0lv9imfs5ak9fd0qhysij8kpmdhi";
};
postPatch = ''
@@ -20,6 +25,8 @@ buildPythonPackage rec {
"themes_dir = string(default='$out/share/themes')"
'';
nativeBuildInputs = lib.optional withManpage sphinx;
propagatedBuildInputs = [
notmuch
urwid
@@ -27,21 +34,32 @@ buildPythonPackage rec {
twisted
python_magic
configobj
pygpgme
mock
service-identity
file
gpgme
];
postInstall = ''
mkdir -p $out/share
# some twisted tests need the network (test_env_set... )
doCheck = false;
postBuild = lib.optionalString withManpage "make -C docs man";
checkInputs = [ awk future mock gnupg procps ];
postInstall = lib.optionalString withManpage ''
mkdir -p $out/man
cp -r docs/build/man $out/man
''
+ ''
mkdir -p $out/share/applications
cp -r extra/themes $out/share
wrapProgram $out/bin/alot \
--prefix LD_LIBRARY_PATH : '${stdenv.lib.makeLibraryPath [ notmuch file gpgme ]}'
sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
'';
meta = with stdenv.lib; {
homepage = https://github.com/pazz/alot;
description = "Terminal MUA using notmuch mail";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ garbas ];
};

View File

@@ -1,30 +1,36 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, isPyPy
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, isPyPy, isPy3k, pythonOlder
, matplotlib, pycrypto, ecdsa
# Python3: pyx
, enum34, mock
}:
buildPythonPackage rec {
pname = "scapy";
version = "2.3.3";
version = "2.4.0";
name = pname + "-" + version;
disabled = isPy3k || isPyPy;
disabled = isPyPy;
src = fetchFromGitHub {
owner = "secdev";
repo = "scapy";
rev = "v${version}";
sha256 = "1c22407vhksnhc0rwrslnp9zy05qmk2zmdm2imm3iw7g6kx7gak1";
sha256 = "0dw6kl1qi9bf3rbm79gb1h40ms8y0b5dbmpip841p2905d5r2isj";
};
# Temporary workaround, only needed for 2.3.3
# TODO: Temporary workaround
patches = [ ./fix-version-1.patch ./fix-version-2.patch ];
propagatedBuildInputs = [ matplotlib pycrypto ecdsa ];
propagatedBuildInputs =
[ matplotlib pycrypto ecdsa ]
++ lib.optional (isPy3k && pythonOlder "3.4") [ enum34 ]
++ lib.optional doCheck [ mock ];
# Tests fail with Python 3.6 (seems to be an upstream bug, I'll investigate)
doCheck = if isPy3k then false else true;
meta = with stdenv.lib; {
description = "Powerful interactive network packet manipulation program";
homepage = http://www.secdev.org/projects/scapy/;
homepage = https://scapy.net/;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos bjornfor ];

View File

@@ -1,11 +1,11 @@
--- a/setup.py 2018-02-15 22:14:08.531591678 +0100
+++ b/setup.py 2018-02-15 22:14:57.947703737 +0100
+++ b/setup.py 2018-03-27 17:15:38.617315539 +0200
@@ -47,7 +47,7 @@
setup(
name='scapy',
- version=__import__('scapy').VERSION,
+ version='2.3.3',
+ version='2.4.0',
packages=[
'scapy',
'scapy/arch',

View File

@@ -1,11 +1,15 @@
--- a/scapy/__init__.py 2017-12-29 18:57:35.315472160 +0100
+++ b/scapy/__init__.py 2018-02-15 22:36:43.102132489 +0100
@@ -73,7 +73,7 @@
tag = f.read()
return tag
except:
- return 'unknown.version'
+ return '2.3.3'
--- 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 '2.4.0'
else:
- return 'unknown.version'
+ return '2.4.0'
+
VERSION = _version()

View File

@@ -13,8 +13,6 @@
buildPythonPackage rec {
pname = "service_identity";
version = "17.0.0";
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "pyca";
@@ -33,6 +31,6 @@ buildPythonPackage rec {
meta = with lib; {
description = "Service identity verification for pyOpenSSL";
license = licenses.mit;
homepage = "https://service-identity.readthedocs.io";
homepage = https://service-identity.readthedocs.io;
};
}