Merge branch 'master' into staging
Hydra: ?compare=1421760
This commit is contained in:
36
pkgs/development/python-modules/chainer/default.nix
Normal file
36
pkgs/development/python-modules/chainer/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ stdenv, lib, python
|
||||
, buildPythonPackage, fetchPypi, isPy3k
|
||||
, filelock, protobuf, numpy, pytest, mock
|
||||
, cupy, cudaSupport ? false
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "chainer";
|
||||
version = "3.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0mbc8kwk7pvg03bf0j57a48gr6rsdg4lzmyj0dak8y2l4lmyskpw";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
mock
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
filelock
|
||||
protobuf
|
||||
numpy
|
||||
] ++ lib.optionals cudaSupport [ cupy ];
|
||||
|
||||
# In python3, test was failed...
|
||||
doCheck = !isPy3k;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A flexible framework of neural networks for deep learning";
|
||||
homepage = https://chainer.org/;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hyphon81 ];
|
||||
};
|
||||
}
|
||||
46
pkgs/development/python-modules/cupy/default.nix
Normal file
46
pkgs/development/python-modules/cupy/default.nix
Normal file
@@ -0,0 +1,46 @@
|
||||
{ stdenv, python, buildPythonPackage
|
||||
, fetchPypi, isPy3k, linuxPackages, gcc5
|
||||
, fastrlock, numpy, six, wheel, pytest, mock
|
||||
, cudatoolkit, cudnn, nccl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cupy";
|
||||
version = "2.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0si0ri8azxvxh3lpm4l4g60jf4nwzibi53yldbdbzb1svlqq060r";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
mock
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
gcc5
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cudatoolkit
|
||||
cudnn
|
||||
linuxPackages.nvidia_x11
|
||||
nccl
|
||||
fastrlock
|
||||
numpy
|
||||
six
|
||||
wheel
|
||||
];
|
||||
|
||||
# In python3, test was failed...
|
||||
doCheck = !isPy3k;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A NumPy-compatible matrix library accelerated by CUDA";
|
||||
homepage = https://cupy.chainer.org/;
|
||||
license = licenses.mit;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = with maintainers; [ hyphon81 ];
|
||||
};
|
||||
}
|
||||
18
pkgs/development/python-modules/fastrlock/default.nix
Normal file
18
pkgs/development/python-modules/fastrlock/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastrlock";
|
||||
version = "0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "00mr9b15d539z89ng5nf89s2ryhk90xwx95jal77ma0wslixrk5d";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/scoder/fastrlock;
|
||||
description = "A fast RLock implementation for CPython";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hyphon81 ];
|
||||
};
|
||||
}
|
||||
18
pkgs/development/python-modules/filelock/default.nix
Normal file
18
pkgs/development/python-modules/filelock/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "filelock";
|
||||
version = "2.0.13";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1n67dw7np5gsy5whynyk8c46pjlr353d6j9735p5gryaszkpjl6h";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/benediktschmitt/py-filelock;
|
||||
description = "A platform independent file lock for Python";
|
||||
license = licenses.unlicense;
|
||||
maintainers = with maintainers; [ hyphon81 ];
|
||||
};
|
||||
}
|
||||
26
pkgs/development/python-modules/google_api_core/default.nix
Normal file
26
pkgs/development/python-modules/google_api_core/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, google_auth, protobuf, googleapis_common_protos, requests, grpcio, setuptools, mock, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-api-core";
|
||||
version = "0.1.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0qmjswj079w7q7zbnh8p4n2r3f831wymm9hfdlc7zfrini7184xv";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google_auth protobuf googleapis_common_protos requests grpcio ];
|
||||
checkInputs = [ setuptools mock pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "This library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients.";
|
||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ vanschelven ];
|
||||
};
|
||||
}
|
||||
31
pkgs/development/python-modules/google_auth/default.nix
Normal file
31
pkgs/development/python-modules/google_auth/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pytest, mock, oauth2client, flask, requests, urllib3, pytest-localserver, six, pyasn1-modules, cachetools, rsa }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-auth";
|
||||
version = "1.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "041qpwlvpawggasvbfpkx39mkg4dgvivj831x7kinidayrf46w3i";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest mock oauth2client flask requests urllib3 pytest-localserver ];
|
||||
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa ];
|
||||
|
||||
# The removed test tests the working together of google_auth and google's https://pypi.python.org/pypi/oauth2client
|
||||
# but the latter is deprecated. Since it is not currently part of the nixpkgs collection and deprecated it will
|
||||
# probably never be. We just remove the test to make the tests work again.
|
||||
postPatch = ''rm tests/test__oauth2client.py'';
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "This library simplifies using Google’s various server-to-server authentication mechanisms to access Google APIs.";
|
||||
homepage = "https://google-auth.readthedocs.io/en/latest/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ vanschelven ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, google_api_core, grpcio, pytest, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-cloud-core";
|
||||
version = "0.28.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1h8bx99ksla48zkb7bhkqy66b8prg49dp15alh851vzi9ii2zii7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google_api_core grpcio ];
|
||||
checkInputs = [ pytest mock ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "API Client library for Google Cloud: Core Helpers";
|
||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ vanschelven ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, setuptools, google_api_core, google_gax, google_cloud_core, pytest, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-cloud-speech";
|
||||
version = "0.30.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ckigh6bfzhflhllqdnfygm8w0r6ncp0myf1midifx7sn880g4pa";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ setuptools google_api_core google_gax google_cloud_core ];
|
||||
checkInputs = [ pytest mock ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Cloud Speech API enables integration of Google speech recognition into applications.";
|
||||
homepage = "https://googlecloudplatform.github.io/google-cloud-python/latest/speech/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ vanschelven ];
|
||||
};
|
||||
}
|
||||
30
pkgs/development/python-modules/google_gax/default.nix
Normal file
30
pkgs/development/python-modules/google_gax/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, google_auth, ply, protobuf, grpcio, requests, googleapis_common_protos, dill, future, pytest, mock, unittest2 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-gax";
|
||||
version = "0.15.16";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0p1ribd2xy7a04wnjv12agkcdi6f9cpj838884hayx07p5g8v3ji";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google_auth ply protobuf grpcio requests googleapis_common_protos dill future ];
|
||||
checkInputs = [ pytest mock unittest2 ];
|
||||
|
||||
# Importing test__grpc_google_auth fails with "ModuleNotFoundError: No module named 'google_auth_httplib2'", where
|
||||
# that file would be is unclear to me so I just remove the test.
|
||||
postPatch = ''rm tests/test__grpc_google_auth.py'';
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Google API Extensions for Python (gax-python) tools based on gRPC and Google API conventions.";
|
||||
homepage = "http://gax-python.readthedocs.io/en/latest/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ vanschelven ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, protobuf, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "googleapis-common-protos";
|
||||
version = "1.5.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1whfjl44gy15ha6palpwa2m0xi36dsvpaz8vw0cvb2k2lbdfsxf0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ protobuf ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
doCheck = false; # there are no tests
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Common protobufs used in Google APIs";
|
||||
homepage = "https://github.com/googleapis/googleapis";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ vanschelven ];
|
||||
};
|
||||
}
|
||||
23
pkgs/development/python-modules/grpcio/default.nix
Normal file
23
pkgs/development/python-modules/grpcio/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, lib
|
||||
, six, protobuf, enum34, futures, isPy26, isPy27, isPy34 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "grpcio";
|
||||
version = "1.7.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1wkrxj1jmf2dyx207fc9ysyns9h27gls3drgg05mzdckjqr5lnl6";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six protobuf ]
|
||||
++ lib.optionals (isPy26 || isPy27 || isPy34) [ enum34 ]
|
||||
++ lib.optionals (isPy26 || isPy27) [ futures ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "HTTP/2-based RPC framework";
|
||||
license = lib.licenses.bsd3;
|
||||
homepage = "https://grpc.io/grpc/python/";
|
||||
maintainers = with maintainers; [ vanschelven ];
|
||||
};
|
||||
}
|
||||
43
pkgs/development/python-modules/pykde4/default.nix
Normal file
43
pkgs/development/python-modules/pykde4/default.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ pyqt4,
|
||||
stdenv, callPackage, fetchurl, cmake, automoc4, sip }:
|
||||
|
||||
let
|
||||
kdelibs = callPackage ./kdelibs.nix {};
|
||||
sip4_19_3 = sip.overrideAttrs (oldAttrs: rec {
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/pyqt/sip/sip-4.19.3/sip-4.19.3.tar.gz";
|
||||
sha256 = "0x2bghbprwl3az1ni3p87i0bq8r99694la93kg65vi0cz12gh3bl";
|
||||
};
|
||||
});
|
||||
pyqt4_fixed = pyqt4.overrideAttrs (oldAttrs: rec {
|
||||
propagatedBuildInputs = [ sip4_19_3 ];
|
||||
});
|
||||
in stdenv.mkDerivation rec {
|
||||
version = "4.14.3";
|
||||
name = "pykde4-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kde/stable/${version}/src/${name}-${version}.tar.xz";
|
||||
sha256 = "1z40gnkyjlv6ds3cmpzvv99394rhmydr6rxx7qj33m83xnsxgfbz";
|
||||
};
|
||||
|
||||
patches = [ ./dlfcn.patch ];
|
||||
|
||||
buildInputs = [
|
||||
kdelibs
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake automoc4 ];
|
||||
|
||||
propagatedBuildInputs = [ pyqt4_fixed ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
platforms = platforms.linux;
|
||||
description = "Python bindings for KDE";
|
||||
license = with licenses; [ gpl2 lgpl2 ];
|
||||
homepage = https://api.kde.org/pykde-4.3-api/;
|
||||
maintainers = with maintainers; [ gnidorah ];
|
||||
};
|
||||
}
|
||||
13
pkgs/development/python-modules/pykde4/dlfcn.patch
Normal file
13
pkgs/development/python-modules/pykde4/dlfcn.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- __init__.py.orig 2017-11-02 09:06:48.998054459 +0300
|
||||
+++ ./__init__.py 2017-11-02 09:24:28.089072752 +0300
|
||||
@@ -1,4 +1,8 @@
|
||||
-import sys,DLFCN
|
||||
+import sys
|
||||
+try:
|
||||
+ import DLFCN
|
||||
+except ImportError:
|
||||
+ import os as DLFCN
|
||||
# This is needed to ensure that dynamic_cast and RTTI works inside kdelibs.
|
||||
sys.setdlopenflags(DLFCN.RTLD_NOW|DLFCN.RTLD_GLOBAL)
|
||||
|
||||
\ No newline at end of file
|
||||
38
pkgs/development/python-modules/pykde4/kdelibs.nix
Normal file
38
pkgs/development/python-modules/pykde4/kdelibs.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
stdenv, fetchurl,
|
||||
automoc4, cmake_2_8, libxslt, perl, pkgconfig, shared_mime_info,
|
||||
attica, docbook_xml_dtd_42, docbook_xsl, giflib,
|
||||
libdbusmenu_qt, libjpeg, phonon, qt4
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "4.14.38";
|
||||
name = "kdelibs-${version}";
|
||||
src = fetchurl {
|
||||
url = "mirror://kde/stable/applications/17.08.3/src/${name}.tar.xz";
|
||||
sha256 = "1zn3yb09sd22bm54is0rn98amj0398zybl550dp406419sil7z9p";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
automoc4 cmake_2_8 libxslt perl pkgconfig shared_mime_info
|
||||
];
|
||||
buildInputs = [
|
||||
attica giflib libdbusmenu_qt libjpeg
|
||||
];
|
||||
propagatedBuildInputs = [ qt4 phonon ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DDOCBOOKXML_CURRENTDTD_DIR=${docbook_xml_dtd_42}/xml/dtd/docbook"
|
||||
"-DDOCBOOKXSL_DIR=${docbook_xsl}/xml/xsl/docbook"
|
||||
"-DKJS_FORCE_DISABLE_PCRE=true"
|
||||
"-DWITH_SOLID_UDISKS2=OFF"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
platforms = platforms.linux;
|
||||
homepage = http://www.kde.org;
|
||||
license = with licenses; [ gpl2 fdl12 lgpl21 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user