Merge pull request #33280 from NixOS/python-unstable
Python: upgrade package set
This commit is contained in:
commit
e576535408
@ -25,12 +25,11 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "blaze";
|
pname = "blaze";
|
||||||
version = "0.11.0";
|
version = "0.11.3";
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/blaze/blaze/archive/${version}.tar.gz";
|
url = "https://github.com/blaze/blaze/archive/${version}.tar.gz";
|
||||||
sha256 = "07zrrxkmdqk84xvdmp29859zcfzlpx5pz6g62l28nqp6n6a7yq9a";
|
sha256 = "075gqc9d7g284z4nfwv5zbq99ln22w25l4lcndjg3v10kmsjadww";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
@ -56,13 +55,8 @@ buildPythonPackage rec {
|
|||||||
toolz
|
toolz
|
||||||
];
|
];
|
||||||
|
|
||||||
# Failing test
|
|
||||||
# ERROR collecting blaze/tests/test_interactive.py
|
|
||||||
# E networkx.exception.NetworkXNoPath: node <class 'list'> not
|
|
||||||
# reachable from <class 'dask.array.core.Array'>
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
rm pytest.ini # Not interested in coverage
|
||||||
py.test blaze/tests
|
py.test blaze/tests
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
36
pkgs/development/python-modules/brotlipy/default.nix
Normal file
36
pkgs/development/python-modules/brotlipy/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, cffi
|
||||||
|
, enum34
|
||||||
|
, construct
|
||||||
|
, pytest
|
||||||
|
, hypothesis
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "brotlipy";
|
||||||
|
version = "0.7.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "36def0b859beaf21910157b4c33eb3b06d8ce459c942102f16988cca6ea164df";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ cffi enum34 construct ];
|
||||||
|
|
||||||
|
checkInputs = [ pytest hypothesis ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Missing test files
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Python bindings for the reference Brotli encoder/decoder";
|
||||||
|
homepage = "https://github.com/python-hyper/brotlipy/";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "decorator";
|
pname = "decorator";
|
||||||
version = "4.0.11";
|
version = "4.1.2";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "953d6bf082b100f43229cf547f4f97f97e970f5ad645ee7601d55ff87afdfe76";
|
sha256 = "7cb64d38cb8002971710c8899fbdfb859a23a364b7c99dab19d1f719c2ba16b5";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{ stdenv, buildPythonPackage, python, fetchurl }:
|
{ stdenv, buildPythonPackage, python, fetchPypi}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "fastimport-${version}";
|
pname = "fastimport";
|
||||||
version = "0.9.6";
|
version = "0.9.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchPypi {
|
||||||
url = "mirror://pypi/f/fastimport/${name}.tar.gz";
|
inherit pname version;
|
||||||
sha256 = "1aqjsin4rmqm7ln4j0p73fzxifws6c6ikgyhav7r137m2ixsxl43";
|
sha256 = "1aqjsin4rmqm7ln4j0p73fzxifws6c6ikgyhav7r137m2ixsxl43";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2,16 +2,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "3.1.2";
|
version = "3.1.2";
|
||||||
pname = "gflags";
|
pname = "python-gflags";
|
||||||
name = pname + "-" + version;
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit version;
|
inherit pname version;
|
||||||
pname = "python-gflags";
|
|
||||||
sha256 = "40ae131e899ef68e9e14aa53ca063839c34f6a168afe622217b5b875492a1ee2";
|
sha256 = "40ae131e899ef68e9e14aa53ca063839c34f6a168afe622217b5b875492a1ee2";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ six ];
|
propagatedBuildInputs = [ six ];
|
||||||
|
|
||||||
|
24
pkgs/development/python-modules/jellyfish/default.nix
Normal file
24
pkgs/development/python-modules/jellyfish/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pytest
|
||||||
|
, unicodecsv
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "jellyfish";
|
||||||
|
version = "0.5.6";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "887a9a49d0caee913a883c3e7eb185f6260ebe2137562365be422d1316bd39c9";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [ pytest unicodecsv ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = https://github.com/sunlightlabs/jellyfish;
|
||||||
|
description = "Approximate and phonetic matching of strings";
|
||||||
|
maintainers = with lib.maintainers; [ koral ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchFromGitHub, buildPythonPackage, nose, minimock }:
|
{ stdenv, fetchFromGitHub, buildPythonPackage, nose, minimock }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "mygpoclient-${version}";
|
pname = "mypgoclient";
|
||||||
version = "1.8";
|
version = "1.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -11,7 +11,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0aa28wc55x3rxa7clwfv5v5500ffyaq0vkxaa3v01y1r93dxkdvp";
|
sha256 = "0aa28wc55x3rxa7clwfv5v5500ffyaq0vkxaa3v01y1r93dxkdvp";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ nose minimock ];
|
checkInputs = [ nose minimock ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
nosetests
|
nosetests
|
||||||
@ -25,7 +25,6 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
homepage = https://github.com/gpodder/mygpoclient;
|
homepage = https://github.com/gpodder/mygpoclient;
|
||||||
license = with licenses; [ gpl3 ];
|
license = with licenses; [ gpl3 ];
|
||||||
platforms = with platforms; linux ++ darwin;
|
|
||||||
maintainers = with maintainers; [ skeidel ];
|
maintainers = with maintainers; [ skeidel ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
34
pkgs/development/python-modules/networkx/default.nix
Normal file
34
pkgs/development/python-modules/networkx/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, nose
|
||||||
|
, decorator
|
||||||
|
, isPy36
|
||||||
|
, isPyPy
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "networkx";
|
||||||
|
version = "1.11";
|
||||||
|
|
||||||
|
# Currently broken on PyPy.
|
||||||
|
# https://github.com/networkx/networkx/pull/1361
|
||||||
|
disabled = isPyPy;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [ nose ];
|
||||||
|
propagatedBuildInputs = [ decorator ];
|
||||||
|
|
||||||
|
# 17 failures with 3.6 https://github.com/networkx/networkx/issues/2396#issuecomment-304437299
|
||||||
|
doCheck = !(isPy36);
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://networkx.github.io/";
|
||||||
|
description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks";
|
||||||
|
license = lib.licenses.bsd3;
|
||||||
|
};
|
||||||
|
}
|
@ -28,12 +28,12 @@ let
|
|||||||
inherit (stdenv) isDarwin;
|
inherit (stdenv) isDarwin;
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage rec {
|
||||||
pname = "pandas";
|
pname = "pandas";
|
||||||
version = "0.21.1";
|
version = "0.22.0";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "c5f5cba88bf0659554c41c909e1f78139f6fce8fa9315a29a23692b38ff9788a";
|
sha256 = "44a94091dd71f05922eec661638ec1a35f26d573c119aa2fad964f10a2880e6c";
|
||||||
};
|
};
|
||||||
|
|
||||||
LC_ALL = "en_US.UTF-8";
|
LC_ALL = "en_US.UTF-8";
|
||||||
|
@ -3,14 +3,13 @@
|
|||||||
, pytest, pytestrunner
|
, pytest, pytestrunner
|
||||||
, parse, six, enum34
|
, parse, six, enum34
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "parse-type";
|
pname = "parse_type";
|
||||||
version = "0.3.4";
|
version = "0.3.4";
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit version;
|
inherit pname version;
|
||||||
pname = "parse_type";
|
|
||||||
sha256 = "3dd0b323bafcb8c25e000ce5589042a1c99cba9c3bec77b9f591e46bc9606147";
|
sha256 = "3dd0b323bafcb8c25e000ce5589042a1c99cba9c3bec77b9f591e46bc9606147";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
35
pkgs/development/python-modules/partd/default.nix
Normal file
35
pkgs/development/python-modules/partd/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pytest
|
||||||
|
, locket
|
||||||
|
, numpy
|
||||||
|
, pandas
|
||||||
|
, pyzmq
|
||||||
|
, toolz
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "partd";
|
||||||
|
version = "0.3.8";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "67291f1c4827cde3e0148b3be5d69af64b6d6169feb9ba88f0a6cfe77089400f";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ locket numpy pandas pyzmq toolz ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
rm partd/tests/test_zmq.py # requires network & fails
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Appendable key-value storage";
|
||||||
|
license = with lib.licenses; [ bsd3 ];
|
||||||
|
homepage = https://github.com/dask/partd/;
|
||||||
|
};
|
||||||
|
}
|
27
pkgs/development/python-modules/plone-testing/default.nix
Normal file
27
pkgs/development/python-modules/plone-testing/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, zope_testing
|
||||||
|
, setuptools
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "plone.testing";
|
||||||
|
version = "5.1.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "2ca558a910b93355b760535b233518be3a06c58e46160487bf802b6f7cb1e511";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ setuptools zope_testing ];
|
||||||
|
|
||||||
|
# Huge amount of testing dependencies (including Zope2)
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Testing infrastructure for Zope and Plone projects";
|
||||||
|
homepage = https://github.com/plone/plone.testing;
|
||||||
|
license = lib.licenses.bsd3;
|
||||||
|
};
|
||||||
|
}
|
@ -1,21 +1,22 @@
|
|||||||
{ stdenv, fetchurl, bash, autoconf, automake, libtool, pkgconfig, libcangjie
|
{ stdenv, fetchurl, bash, autoconf, automake, libtool, pkgconfig, libcangjie
|
||||||
, sqlite, python, cython
|
, sqlite, buildPythonPackage, cython
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "${python.libPrefix}-pycangjie-${version}";
|
|
||||||
version = "1.3_rev_${rev}";
|
|
||||||
rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3";
|
rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3";
|
||||||
|
in buildPythonPackage rec {
|
||||||
|
pname = "pycangjie";
|
||||||
|
version = "1.3_rev_${rev}";
|
||||||
|
format = "other";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
name = "${name}.tar.gz";
|
|
||||||
url = "https://github.com/Cangjians/pycangjie/archive/${rev}.tar.gz";
|
url = "https://github.com/Cangjians/pycangjie/archive/${rev}.tar.gz";
|
||||||
sha256 = "12yi09nyffmn4va7lzk4irw349qzlbxgsnb89dh15cnw0xmrin05";
|
sha256 = "12yi09nyffmn4va7lzk4irw349qzlbxgsnb89dh15cnw0xmrin05";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
autoconf automake libtool libcangjie sqlite python cython
|
autoconf automake libtool libcangjie sqlite cython
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
pname = "PySC2";
|
||||||
version = "1.2";
|
version = "1.2";
|
||||||
name = "PySC2-${version}";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "deepmind";
|
owner = "deepmind";
|
||||||
|
@ -7,21 +7,21 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
baseName = "fuse";
|
pname = "fuse";
|
||||||
version = "0.2.1";
|
version = "0.2.1";
|
||||||
name = "${baseName}-${version}";
|
|
||||||
disabled = isPy3k;
|
|
||||||
|
|
||||||
src = fetchurl {
|
disabled = isPy3k;
|
||||||
url = "mirror://sourceforge/fuse/fuse-python-${version}.tar.gz";
|
|
||||||
sha256 = "06rmp1ap6flh64m81j0n3a357ij2vj9zwcvvw0p31y6hz1id9shi";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
src = fetchurl {
|
||||||
buildInputs = [ fuse ];
|
url = "mirror://sourceforge/fuse/fuse-python-${version}.tar.gz";
|
||||||
|
sha256 = "06rmp1ap6flh64m81j0n3a357ij2vj9zwcvvw0p31y6hz1id9shi";
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
description = "Python bindings for FUSE";
|
buildInputs = [ fuse ];
|
||||||
license = lib.licenses.lgpl21;
|
|
||||||
};
|
meta = {
|
||||||
|
description = "Python bindings for FUSE";
|
||||||
|
license = lib.licenses.lgpl21;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "pywbem-${version}";
|
pname = "pywbem";
|
||||||
version = "0.10.0";
|
version = "0.10.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
23
pkgs/development/python-modules/regex/default.nix
Normal file
23
pkgs/development/python-modules/regex/default.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "regex";
|
||||||
|
version = "2017.12.12";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "ee069308c2757e565cc2b6f417ba5288e76cfe4c1764b6826063f4fbd53219d7";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Alternative regular expression module, to replace re";
|
||||||
|
homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
|
||||||
|
license = lib.licenses.psfl;
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
maintainers = with lib.maintainers; [ abbradar ];
|
||||||
|
};
|
||||||
|
}
|
@ -19,23 +19,12 @@
|
|||||||
, ftfy
|
, ftfy
|
||||||
, thinc
|
, thinc
|
||||||
, pip
|
, pip
|
||||||
|
, regex
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
enableDebugging = true;
|
|
||||||
regexLocked = buildPythonPackage rec {
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "regex";
|
|
||||||
version = "2017.04.05";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
buildPythonPackage rec {
|
||||||
inherit pname version;
|
|
||||||
sha256 = "0c95gf3jzz8mv52lkgq0h7sbasjwvdhghm4s0phmy5k9sr78f4fq";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in buildPythonPackage rec {
|
|
||||||
pname = "spacy";
|
pname = "spacy";
|
||||||
version = "1.8.2";
|
version = "1.8.2";
|
||||||
name = pname + "-" + version;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "explosion";
|
owner = "explosion";
|
||||||
@ -56,7 +45,7 @@ in buildPythonPackage rec {
|
|||||||
ujson
|
ujson
|
||||||
dill
|
dill
|
||||||
requests
|
requests
|
||||||
regexLocked
|
regex
|
||||||
ftfy
|
ftfy
|
||||||
thinc
|
thinc
|
||||||
pytest
|
pytest
|
||||||
|
30
pkgs/development/python-modules/splinter/default.nix
Normal file
30
pkgs/development/python-modules/splinter/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, selenium
|
||||||
|
, flask
|
||||||
|
, coverage
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "splinter";
|
||||||
|
version = "0.7.7";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "f97119f84d339067169451d56043f37f6b0a504a17a7ac6e48c91c012be72af6";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ selenium ];
|
||||||
|
|
||||||
|
checkInputs = [ flask coverage ];
|
||||||
|
|
||||||
|
# No tests included
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Browser abstraction for web acceptance testing";
|
||||||
|
homepage = https://github.com/cobrateam/splinter;
|
||||||
|
license = lib.licenses.bsd3;
|
||||||
|
};
|
||||||
|
}
|
@ -5,11 +5,11 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
pname = "Werkzeug";
|
pname = "Werkzeug";
|
||||||
version = "0.13";
|
version = "0.14.1";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "6246e5fc98a505824113fb6aca993d45ea284a2bcffdc2c65d0c538e53e4abd3";
|
sha256 = "c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ itsdangerous ];
|
propagatedBuildInputs = [ itsdangerous ];
|
||||||
|
@ -1,34 +1,43 @@
|
|||||||
{ lib, pythonPackages, fetchFromGitHub }:
|
{ lib, pythonPackages, fetchFromGitHub }:
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
with pythonPackages;
|
||||||
name = "searx-${version}";
|
|
||||||
version = "0.12.0";
|
|
||||||
namePrefix = "";
|
|
||||||
|
|
||||||
|
buildPythonApplication rec {
|
||||||
|
pname = "searx";
|
||||||
|
version = "0.13.1";
|
||||||
|
|
||||||
|
# Can not use PyPI because certain test files are missing.
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "asciimoo";
|
owner = "asciimoo";
|
||||||
repo = "searx";
|
repo = "searx";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "196lk8dpv8fsjgmwlqik6j6rabvfid41fir6lzqy03hv7ydcw1k0";
|
sha256 = "0nizxq9ggf9g8f8pxn2hfm0kn20356v65h4cj9s73n742nkv6ani";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace requirements.txt \
|
substituteInPlace requirements.txt \
|
||||||
--replace 'certifi==2017.1.23' 'certifi' \
|
--replace 'certifi==2017.11.5' 'certifi' \
|
||||||
--replace 'lxml==3.7.3' 'lxml' \
|
--replace 'flask==0.12.2' 'flask==0.12.*' \
|
||||||
--replace 'pyopenssl==16.2.0' 'pyopenssl' \
|
--replace 'flask-babel==0.11.2' 'flask-babel==0.11.*' \
|
||||||
|
--replace 'lxml==4.1.1' 'lxml==4.1.*' \
|
||||||
|
--replace 'idna==2.5' 'idna' \
|
||||||
--replace 'pygments==2.1.3' 'pygments>=2.1,<3.0' \
|
--replace 'pygments==2.1.3' 'pygments>=2.1,<3.0' \
|
||||||
--replace 'flask==0.12' 'flask==0.12.*' \
|
--replace 'pyopenssl==17.4.0' 'pyopenssl' \
|
||||||
--replace 'requests[socks]==2.13.0' 'requests[socks]==2.*' \
|
--replace 'python-dateutil==2.6.1' 'python-dateutil==2.6.*'
|
||||||
--replace 'python-dateutil==2.6.0' 'python-dateutil==2.6.*'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
propagatedBuildInputs = [
|
||||||
pyyaml lxml grequests flaskbabel flask requests
|
pyyaml lxml grequests flaskbabel flask requests
|
||||||
gevent speaklater Babel pytz dateutil pygments
|
gevent speaklater Babel pytz dateutil pygments
|
||||||
pyasn1 pyasn1-modules ndg-httpsclient certifi pysocks
|
pyasn1 pyasn1-modules ndg-httpsclient certifi pysocks
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [ splinter mock plone-testing robotsuite unittest2 ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
rm tests/test_robot.py # A variable that is imported is commented out
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = https://github.com/asciimoo/searx;
|
homepage = https://github.com/asciimoo/searx;
|
||||||
description = "A privacy-respecting, hackable metasearch engine";
|
description = "A privacy-respecting, hackable metasearch engine";
|
||||||
|
@ -7001,23 +7001,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
regex = buildPythonPackage rec {
|
regex = callPackage ../development/python-modules/regex { };
|
||||||
name = "regex-${version}";
|
|
||||||
version = "2016.11.18";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/r/regex/${name}.tar.gz";
|
|
||||||
sha256 = "126ds2b355n3pgl7brshhscpxn14ycs0yznzl8k4akj4sps1i6c6";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Alternative regular expression module, to replace re";
|
|
||||||
homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
|
|
||||||
license = licenses.psfl;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ abbradar ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
repoze_lru = buildPythonPackage rec {
|
repoze_lru = buildPythonPackage rec {
|
||||||
name = "repoze.lru-0.6";
|
name = "repoze.lru-0.6";
|
||||||
@ -7033,8 +7017,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
repoze_sphinx_autointerface = buildPythonPackage rec {
|
repoze_sphinx_autointerface = buildPythonPackage rec {
|
||||||
name = "repoze.sphinx.autointerface-0.7.1";
|
name = "repoze.sphinx.autointerface-0.7.1";
|
||||||
|
|
||||||
@ -9518,23 +9500,7 @@ in {
|
|||||||
|
|
||||||
jedi = callPackage ../development/python-modules/jedi { };
|
jedi = callPackage ../development/python-modules/jedi { };
|
||||||
|
|
||||||
jellyfish = buildPythonPackage rec {
|
jellyfish = callPackage ../development/python-modules/jellyfish { };
|
||||||
version = "0.5.2";
|
|
||||||
name = "jellyfish-${version}";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/j/jellyfish/${name}.tar.gz";
|
|
||||||
sha256 = "15xk0kbr1gig9r1mp22lk9mk3jyi886h8ywn9diixhnyl4q6dacn";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ pytest unicodecsv ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://github.com/sunlightlabs/jellyfish;
|
|
||||||
description = "Approximate and phonetic matching of strings";
|
|
||||||
maintainers = with maintainers; [ koral ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
j2cli = buildPythonPackage rec {
|
j2cli = buildPythonPackage rec {
|
||||||
name = "j2cli-${version}";
|
name = "j2cli-${version}";
|
||||||
@ -10536,23 +10502,7 @@ in {
|
|||||||
|
|
||||||
mistune = callPackage ../development/python-modules/mistune { };
|
mistune = callPackage ../development/python-modules/mistune { };
|
||||||
|
|
||||||
brotlipy = buildPythonPackage rec {
|
brotlipy = callPackage ../development/python-modules/brotlipy { };
|
||||||
name = "brotlipy-${version}";
|
|
||||||
version = "0.6.0";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/b/brotlipy/${name}.tar.gz";
|
|
||||||
sha256 = "10s2y19zywfkf3sksrw81czhva759aki0clld2pnnlgf64sz7016";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ cffi enum34 construct ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Python bindings for the reference Brotli encoder/decoder";
|
|
||||||
homepage = "https://github.com/python-hyper/brotlipy/";
|
|
||||||
license = licenses.mit;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
sortedcontainers = buildPythonPackage rec {
|
sortedcontainers = buildPythonPackage rec {
|
||||||
name = "sortedcontainers-${version}";
|
name = "sortedcontainers-${version}";
|
||||||
@ -12092,6 +12042,8 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plone-testing = callPackage ../development/python-modules/plone-testing { };
|
||||||
|
|
||||||
ply = buildPythonPackage (rec {
|
ply = buildPythonPackage (rec {
|
||||||
name = "ply-3.8";
|
name = "ply-3.8";
|
||||||
|
|
||||||
@ -12689,30 +12641,7 @@ in {
|
|||||||
|
|
||||||
parso = callPackage ../development/python-modules/parso { };
|
parso = callPackage ../development/python-modules/parso { };
|
||||||
|
|
||||||
partd = buildPythonPackage rec {
|
partd = callPackage ../development/python-modules/partd { };
|
||||||
name = "partd-${version}";
|
|
||||||
version = "0.3.7";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/p/partd/${name}.tar.gz";
|
|
||||||
sha256 = "066d254d2dh9xcanffgkjgwxpz5v0059b063bij10fvzl2y49hzx";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ pytest ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ locket numpy pandas pyzmq toolz ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
rm partd/tests/test_zmq.py # requires network & fails
|
|
||||||
py.test
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Appendable key-value storage";
|
|
||||||
license = with licenses; [ bsd3 ];
|
|
||||||
homepage = https://github.com/dask/partd/;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
patch = buildPythonPackage rec {
|
patch = buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
@ -17389,6 +17318,8 @@ in {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
splinter = callPackage ../development/python-modules/splinter { };
|
||||||
|
|
||||||
spotipy = callPackage ../development/python-modules/spotipy { };
|
spotipy = callPackage ../development/python-modules/spotipy { };
|
||||||
|
|
||||||
Pweave = buildPythonPackage (rec {
|
Pweave = buildPythonPackage (rec {
|
||||||
@ -20952,31 +20883,7 @@ EOF
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networkx = buildPythonPackage rec {
|
networkx = callPackage ../development/python-modules/networkx { };
|
||||||
version = "1.11";
|
|
||||||
name = "networkx-${version}";
|
|
||||||
|
|
||||||
# Currently broken on PyPy.
|
|
||||||
# https://github.com/networkx/networkx/pull/1361
|
|
||||||
disabled = isPyPy;
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/n/networkx/${name}.tar.gz";
|
|
||||||
sha256 = "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ nose ];
|
|
||||||
propagatedBuildInputs = with self; [ decorator ];
|
|
||||||
|
|
||||||
# 17 failures with 3.6 https://github.com/networkx/networkx/issues/2396#issuecomment-304437299
|
|
||||||
doCheck = !(isPy36);
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "https://networkx.github.io/";
|
|
||||||
description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks";
|
|
||||||
license = licenses.bsd3;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
ofxclient = callPackage ../development/python-modules/ofxclient {};
|
ofxclient = callPackage ../development/python-modules/ofxclient {};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user