Merge remote-tracking branch 'upstream/master' into staging
Conflicts: pkgs/top-level/all-packages.nix
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From 355b9d812efdfbd041e14b365258b69c81689981 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Klink <flokli@flokli.de>
|
||||
Date: Thu, 17 May 2018 18:37:40 +0200
|
||||
Subject: [PATCH] odpi/src/dpiOci.c: nixify libclntsh.so dlopen
|
||||
|
||||
---
|
||||
odpi/src/dpiOci.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/odpi/src/dpiOci.c b/odpi/src/dpiOci.c
|
||||
index 76b9867..22c2987 100644
|
||||
--- a/odpi/src/dpiOci.c
|
||||
+++ b/odpi/src/dpiOci.c
|
||||
@@ -1575,6 +1575,10 @@ static int dpiOci__loadLib(dpiError *error)
|
||||
}
|
||||
}
|
||||
}
|
||||
+ if(!dpiOciLibHandle) {
|
||||
+ dpiOciLibHandle = dlopen("@libclntsh@", RTLD_LAZY);
|
||||
+ }
|
||||
+
|
||||
#endif
|
||||
|
||||
if (!dpiOciLibHandle) {
|
||||
--
|
||||
2.16.3
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cx_Oracle";
|
||||
version = "6.2.1";
|
||||
version = "6.3.1";
|
||||
|
||||
buildInputs = [
|
||||
oracle-instantclient
|
||||
@@ -10,10 +10,16 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "01970bc843b3c699a7fd98af19e0401fe69abfbd2acdf464e0bf2ae06ea372b9";
|
||||
sha256 = "0200j6jh80rpgzxmvgcxmkshaj4zadq32g2i97nlwiq3f7q374l7";
|
||||
};
|
||||
|
||||
# Check need an Oracle database to run
|
||||
patches = [ ./0001-odpi-src-dpiOci.c-nixify-libclntsh.so-dlopen.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace odpi/src/dpiOci.c --replace @libclntsh@ "${oracle-instantclient}/lib/libclntsh.so";
|
||||
'';
|
||||
|
||||
# Check need an Oracle database to run
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
19
pkgs/development/python-modules/hiro/default.nix
Normal file
19
pkgs/development/python-modules/hiro/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, six, mock }:
|
||||
buildPythonPackage rec {
|
||||
pname = "hiro";
|
||||
version = "0.1.4";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
||||
sha256 = "1340lhg7k522bqpz5iakl51qb47mjw804mfwwzm77i7qcm5cwiz8";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six mock ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Time manipulation utilities for Python";
|
||||
homepage = http://hiro.readthedocs.io/en/latest/;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nyarly ];
|
||||
};
|
||||
}
|
||||
25
pkgs/development/python-modules/keyrings-alt/default.nix
Normal file
25
pkgs/development/python-modules/keyrings-alt/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, six
|
||||
, pytest, unittest2, mock, keyring
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "keyrings.alt";
|
||||
version = "2.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5cb9b6cdb5ce5e8216533e342d3e1b418ddd210466834061966d7dc1a4736f2d";
|
||||
};
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
# Fails with "ImportError: cannot import name mock"
|
||||
doCheck = false;
|
||||
checkInputs = [ pytest unittest2 mock keyring ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
license = licenses.mit;
|
||||
description = "Alternate keyring implementations";
|
||||
homepage = https://github.com/jaraco/keyrings.alt;
|
||||
maintainers = with maintainers; [ nyarly ];
|
||||
};
|
||||
}
|
||||
41
pkgs/development/python-modules/mail-parser/default.nix
Normal file
41
pkgs/development/python-modules/mail-parser/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{ lib, buildPythonPackage, python, pythonOlder, glibcLocales, fetchFromGitHub, ipaddress, six, simplejson }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mail-parser";
|
||||
version = "3.3.1";
|
||||
|
||||
# no tests in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "SpamScope";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1b1v61zwgdx2xjzds3hp6bv53yq424hhlrhf445n4faj1l0c4lkg";
|
||||
};
|
||||
|
||||
LC_ALL = "en_US.utf-8";
|
||||
|
||||
# ipaddress is part of the standard library of Python 3.3+
|
||||
prePatch = lib.optionalString (!pythonOlder "3.3") ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "ipaddress" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ glibcLocales ];
|
||||
propagatedBuildInputs = [ simplejson six ] ++ lib.optional (pythonOlder "3.3") ipaddress;
|
||||
|
||||
# Taken from .travis.yml
|
||||
checkPhase = ''
|
||||
${python.interpreter} tests/test_main.py
|
||||
${python.interpreter} -m mailparser -v
|
||||
${python.interpreter} -m mailparser -h
|
||||
${python.interpreter} -m mailparser -f tests/mails/mail_malformed_3 -j
|
||||
cat tests/mails/mail_malformed_3 | ${python.interpreter} -m mailparser -k -j
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A mail parser for python 2 and 3";
|
||||
homepage = https://github.com/SpamScope/mail-parser;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ psyanticy ];
|
||||
};
|
||||
}
|
||||
@@ -5,7 +5,7 @@ then throw "Uranium not supported for interpreter ${python.executable}"
|
||||
else
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.2.1";
|
||||
version = "3.3.0";
|
||||
pname = "uranium";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
||||
owner = "Ultimaker";
|
||||
repo = "Uranium";
|
||||
rev = version;
|
||||
sha256 = "1p05iw1x3rvb51p6hj57yq6nsjawjba3pyyr4jx924iq96vcc3fz";
|
||||
sha256 = "1rg0l2blndnbdfcgkjc2r29cnjdm009rz8lnc225ilh9d7w1srbb";
|
||||
};
|
||||
|
||||
buildInputs = [ python gettext ];
|
||||
|
||||
Reference in New Issue
Block a user