Merge branch 'master' into staging-next
Larger rebuild, probably mainly haskell. Hydra nixpkgs: ?compare=1503325
This commit is contained in:
30
pkgs/development/python-modules/filetype/default.nix
Normal file
30
pkgs/development/python-modules/filetype/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "filetype";
|
||||
version = "1.0.2";
|
||||
|
||||
# No tests in PyPI tarball
|
||||
# See https://github.com/h2non/filetype.py/pull/33
|
||||
src = fetchFromGitHub {
|
||||
owner = "h2non";
|
||||
repo = "filetype.py";
|
||||
rev = "v${version}";
|
||||
sha256 = "000gl3q2cadfnmqnbxg31ppc3ak8blzb4nfn75faxbp7b6r5qgr2";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Infer file type and MIME type of any file/buffer";
|
||||
homepage = https://github.com/h2non/filetype.py;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
@@ -7,25 +7,22 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "grammalecte";
|
||||
version = "0.6.1";
|
||||
version = "0.6.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.dicollecte.org/grammalecte/zip/Grammalecte-fr-v${version}.zip";
|
||||
sha256 = "0y2ck6pkd2p3cbjlxxvz3x5rnbg3ghfx97n13302rnab66cy4zkh";
|
||||
sha256 = "11byjs3ggdhia5f4vyfqfvbbczsfqimll98h98g7hlsrm7vrifb0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ bottle ];
|
||||
|
||||
preBuild = "cd ..";
|
||||
postInstall = ''
|
||||
rm $out/bin/bottle.py
|
||||
'';
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
meta = {
|
||||
description = "Grammalecte is an open source grammar checker for the French language";
|
||||
homepage = https://dicollecte.org/grammalecte/;
|
||||
homepage = https://grammalecte.net;
|
||||
license = with lib.licenses; [ gpl3 ];
|
||||
maintainers = with lib.maintainers; [ apeyroux ];
|
||||
};
|
||||
|
||||
35
pkgs/development/python-modules/isbnlib/default.nix
Normal file
35
pkgs/development/python-modules/isbnlib/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, nose
|
||||
, coverage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "isbnlib";
|
||||
version = "3.9.4";
|
||||
|
||||
# PyPI tarball is missing LICENSE file
|
||||
# See https://github.com/xlcnd/isbnlib/pull/53
|
||||
src = fetchFromGitHub {
|
||||
owner = "xlcnd";
|
||||
repo = "isbnlib";
|
||||
rev = "v${version}";
|
||||
sha256 = "0gc0k5khf34b4zz56a9zc3rscdhj3bx849lbzgmzpji30sbyy1fh";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
coverage
|
||||
];
|
||||
|
||||
# requires network connection
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Extract, clean, transform, hyphenate and metadata for ISBNs";
|
||||
homepage = https://github.com/xlcnd/isbnlib;
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
@@ -1,24 +1,32 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, numpy, scipy, six }:
|
||||
{ lib, buildPythonPackage, fetchPypi, numpy, six, scipy, pillow, pytest, Keras }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Keras_Preprocessing";
|
||||
version = "1.0.5";
|
||||
version = "1.0.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ef2e482c4336fcf7180244d06f4374939099daa3183816e82aee7755af35b754";
|
||||
sha256 = "6e669aa713727f0bc08f756616f64e0dfa75d822226cfc0dcf33297ab05cef7d";
|
||||
};
|
||||
|
||||
# Cyclic dependency: keras-preprocessing requires keras, which requires keras-preprocessing
|
||||
postPatch = ''
|
||||
sed -i "s/keras>=[^']*//" setup.py
|
||||
propagatedBuildInputs = [
|
||||
# required
|
||||
numpy six
|
||||
# optional
|
||||
scipy pillow
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest Keras
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests/
|
||||
'';
|
||||
|
||||
# No tests in PyPI tarball
|
||||
# Cyclic dependency: keras-preprocessing's tests require Keras, which requires keras-preprocessing
|
||||
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;
|
||||
|
||||
@@ -25,14 +25,6 @@ buildPythonPackage rec {
|
||||
keras-applications keras-preprocessing
|
||||
];
|
||||
|
||||
# Keras 2.2.2 expects older versions of keras_applications
|
||||
# and keras_preprocessing. These substitutions can be removed
|
||||
# for for the next Keras release.
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "keras_applications==1.0.4" "keras_applications==1.0.5"
|
||||
substituteInPlace setup.py --replace "keras_preprocessing==1.0.2" "keras_preprocessing==1.0.3"
|
||||
'';
|
||||
|
||||
# Couldn't get tests working
|
||||
doCheck = false;
|
||||
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "keyutils";
|
||||
version = "0.5";
|
||||
version = "0.6";
|
||||
|
||||
# github version comes bundled with tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "sassoftware";
|
||||
repo = "python-keyutils";
|
||||
rev = "v${version}";
|
||||
sha256 = "1gga60w8sb3r5bxa0bfp7d7wzg6s3db5y7aizr14p2pvp92d8bdi";
|
||||
rev = version;
|
||||
sha256 = "0pfqfr5xqgsqkxzrmj8xl2glyl4nbq0irs0k6ik7iy3gd3mxf5g1";
|
||||
};
|
||||
|
||||
buildInputs = [ keyutils ];
|
||||
|
||||
Reference in New Issue
Block a user