Add missing files

This commit is contained in:
Shea Levy 2018-02-15 13:17:40 -05:00
parent 5812195f81
commit 29536db9af
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
buildPythonPackage rec {
pname = "JPype1";
version = "0.6.2";
src = fetchPypi {
inherit pname version;
sha256 = "09bzmnzkjbrf60h39wapxc1l8mb3r9km486cly0mm78bv096884r";
};
patches = [ ./set-compiler-language.patch ];
# Test loader complains about non-test module on python3.
doCheck = !isPy3k;
meta = {
homepage = "https://github.com/originell/jpype/";
license = "License :: OSI Approved :: Apache Software License";
description = "A Python to Java bridge.";
};
}

View File

@ -0,0 +1,12 @@
diff -Naur a/setup.py b/setup.py
--- a/setup.py 2017-01-12 19:08:44.000000000 -0500
+++ b/setup.py 2018-02-15 12:28:16.000000000 -0500
@@ -123,7 +123,7 @@
# extra compile args
copt = {'msvc': ['/EHsc'],
- 'unix' : ['-ggdb'],
+ 'unix' : ['-ggdb', '-x', 'c++'],
'mingw32' : [],
}
# extra link args

View File

@ -0,0 +1,16 @@
{ lib, buildPythonPackage, fetchPypi, JPype1 }:
buildPythonPackage rec {
pname = "JayDeBeApi";
version = "1.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "0a189xs9zw81jvwwglvf2qyqnk6ra0biljssx9n4ffayqn9glbds";
};
propagatedBuildInputs = [ JPype1 ];
meta = {
homepage = "https://github.com/baztian/jaydebeapi";
license = lib.licenses.lgpl2;
description = "Use JDBC database drivers from Python 2/3 or Jython with a DB-API.";
};
}