Merge remote-tracking branch 'upstream/master' into staging
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pep8, nose, unittest2, docutils, blockdiag }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch
|
||||
, pep8, nose, unittest2, docutils, blockdiag, reportlab }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "actdiag";
|
||||
@@ -10,13 +10,17 @@ buildPythonPackage rec {
|
||||
sha256 = "983071777d9941093aaef3be1f67c198a8ac8d2bba264cdd1f337ca415ab46af";
|
||||
};
|
||||
|
||||
patches = fetchpatch {
|
||||
name = "drop_test_pep8.py.patch";
|
||||
url = https://bitbucket.org/blockdiag/actdiag/commits/c1f2ed5947a1e93291f5860e4e30cee098bd635d/raw;
|
||||
sha256 = "1zxzwb0fvwlc8xgs45fx65341sjhb3h6l2p6rdj6i127vg1hsxb4";
|
||||
};
|
||||
|
||||
buildInputs = [ pep8 nose unittest2 docutils ];
|
||||
|
||||
propagatedBuildInputs = [ blockdiag ];
|
||||
|
||||
# One test fails:
|
||||
# UnicodeEncodeError: 'ascii' codec can't encode character u'\u3042' in position 0: ordinal not in range(128)
|
||||
doCheck = false;
|
||||
checkInputs = [ reportlab ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Generate activity-diagram image from spec-text file (similar to Graphviz)";
|
||||
|
||||
30
pkgs/development/python-modules/basiciw/default.nix
Normal file
30
pkgs/development/python-modules/basiciw/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, gcc
|
||||
, wirelesstools
|
||||
, isPy27
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "basiciw";
|
||||
version = "0.2.2";
|
||||
|
||||
disabled = isPy27 || isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1ajmflvvlkflrcmqmkrx0zaira84z8kv4ssb2jprfwvjh8vfkysb";
|
||||
};
|
||||
|
||||
buildInputs = [ gcc ];
|
||||
propagatedBuildInputs = [ wirelesstools ];
|
||||
|
||||
meta = {
|
||||
description = "Get info about wireless interfaces using libiw";
|
||||
homepage = https://github.com/enkore/basiciw;
|
||||
platforms = lib.platforms.linux;
|
||||
license = lib.licenses.gpl2;
|
||||
};
|
||||
}
|
||||
43
pkgs/development/python-modules/beaker/default.nix
Normal file
43
pkgs/development/python-modules/beaker/default.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, nose
|
||||
, mock
|
||||
, webtest
|
||||
, sqlalchemy
|
||||
, pycrypto
|
||||
, isPy27
|
||||
, funcsigs
|
||||
, pycryptopp
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Beaker";
|
||||
version = "1.8.0";
|
||||
|
||||
# The pypy release do not contains the tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "bbangert";
|
||||
repo = "beaker";
|
||||
rev = "${version}";
|
||||
sha256 = "17yfr7a307n8rdl09was4j60xqk2s0hk0hywdkigrpj4qnw0is7g";
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
[ nose
|
||||
mock
|
||||
webtest
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
sqlalchemy
|
||||
pycrypto
|
||||
] ++ lib.optionals (isPy27) [
|
||||
funcsigs
|
||||
pycryptopp
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A Session and Caching library with WSGI Middleware";
|
||||
maintainers = with lib.maintainers; [ garbas domenkozar ];
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/imgaug/default.nix
Normal file
29
pkgs/development/python-modules/imgaug/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, numpy, scipy, scikitimage, opencv3, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "imgaug";
|
||||
version = "0.2.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1wy8ydkqq0jrwxwdv04q89n3gwsr9pjaspsbw26ipg5a5lnhb9c2";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
scipy
|
||||
scikitimage
|
||||
opencv3
|
||||
six
|
||||
];
|
||||
|
||||
# disable tests when there are no tests in the PyPI archive
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/aleju/imgaug;
|
||||
description = "Image augmentation for machine learning experiments";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ cmcdragonkai ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, numpy, h5py }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Keras_Applications";
|
||||
version = "1.0.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8c95300328630ae74fb0828b6fa38269a25c0228a02f1e5181753bfd48961f49";
|
||||
};
|
||||
|
||||
# Cyclic dependency: keras-applications requires keras, which requires keras-applications
|
||||
postPatch = ''
|
||||
sed -i "s/keras>=[^']*//" setup.py
|
||||
'';
|
||||
|
||||
# No tests in PyPI tarball
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ numpy h5py ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Reference implementations of popular deep learning models";
|
||||
homepage = https://github.com/keras-team/keras-applications;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, numpy, scipy, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Keras_Preprocessing";
|
||||
version = "1.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f5306554d2b454d825b36f35e327744f5477bd2ae21017f1a93b2097bed6757e";
|
||||
};
|
||||
|
||||
# Cyclic dependency: keras-preprocessing requires keras, which requires keras-preprocessing
|
||||
postPatch = ''
|
||||
sed -i "s/keras>=[^']*//" setup.py
|
||||
'';
|
||||
|
||||
# No tests in PyPI tarball
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy six ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Easy data preprocessing and data augmentation for deep learning models";
|
||||
homepage = https://github.com/keras-team/keras-preprocessing;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
@@ -1,15 +1,16 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pytest, pytestcov, pytestpep8, pytest_xdist
|
||||
, six, numpy, scipy, pyyaml, h5py
|
||||
, keras-applications, keras-preprocessing
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Keras";
|
||||
version = "2.2.0";
|
||||
version = "2.2.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5b8499d157af217f1a5ee33589e774127ebc3e266c833c22cb5afbb0ed1734bf";
|
||||
sha256 = "468d98da104ec5c3dbb10c2ef6bb345ab154f6ca2d722d4c250ef4d6105de17a";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
@@ -21,6 +22,7 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six pyyaml numpy scipy h5py
|
||||
keras-applications keras-preprocessing
|
||||
];
|
||||
|
||||
# Couldn't get tests working
|
||||
|
||||
19
pkgs/development/python-modules/shippai/default.nix
Normal file
19
pkgs/development/python-modules/shippai/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "shippai";
|
||||
# Please make sure that vdirsyncer still builds if you update this package.
|
||||
version = "0.2.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1ppwywzg4d12h658682ssmingm6ls6a96p4ak26i2w9d4lf8pfsc";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Use Rust failures as Python exceptions";
|
||||
homepage = https://github.com/untitaker/shippai;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ gebner ];
|
||||
};
|
||||
}
|
||||
@@ -61,6 +61,15 @@ in buildPythonPackage rec {
|
||||
# bleach) Hence we disable dependency checking for now.
|
||||
installFlags = lib.optional isPy36 "--no-dependencies";
|
||||
|
||||
|
||||
# Upstream has a pip hack that results in bin/tensorboard being in both tensorflow
|
||||
# and the propageted input tensorflow-tensorboard which causes environment collisions.
|
||||
#
|
||||
# https://github.com/tensorflow/tensorflow/blob/v1.7.1/tensorflow/tools/pip_package/setup.py#L79
|
||||
postInstall = ''
|
||||
rm $out/bin/tensorboard
|
||||
'';
|
||||
|
||||
# Note that we need to run *after* the fixup phase because the
|
||||
# libraries are loaded at runtime. If we run in preFixup then
|
||||
# patchelf --shrink-rpath will remove the cuda libraries.
|
||||
|
||||
Reference in New Issue
Block a user