mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge branch 'master' into costrouc/dask-distributed
This commit is contained in:
@@ -20,11 +20,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "APScheduler";
|
||||
version = "3.5.1";
|
||||
version = "3.5.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "952c8f46a11f32b9d5bfbe3e347dac2cdf0680d8b4799590dc9c3a9865b73b65";
|
||||
sha256 = "6599bc78901ee7e9be85cbd073d9cc155c42d2bc867c5cde4d4d1cc339ebfbeb";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
||||
@@ -48,6 +48,8 @@ in buildPythonPackage rec {
|
||||
''--exclude="(${builtins.concatStringsSep "|" excludedTests})"''}
|
||||
'';
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
patches = [
|
||||
# The following is in GitHub in 0.28.3 but not in the `sdist`.
|
||||
# https://github.com/cython/cython/issues/2319
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-PyMongo";
|
||||
version = "2.0.1";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6a02add52ac245064720c2bb8b02074b9a5a0d9498279510ea2a537512fd3fa5";
|
||||
sha256 = "0b99dd99985660ebbc4b34bb44550f88a527cbc573faa01febccce3c4ab28347";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{ stdenv
|
||||
, runCommandCC
|
||||
, lib
|
||||
, fetchPypi
|
||||
, gcc
|
||||
, writeScriptBin
|
||||
, buildPythonPackage
|
||||
, isPyPy
|
||||
, pythonOlder
|
||||
@@ -24,19 +24,24 @@ assert cudaSupport -> nvidia_x11 != null
|
||||
&& cudnn != null;
|
||||
|
||||
let
|
||||
extraFlags =
|
||||
lib.optionals cudaSupport [ "-I ${cudatoolkit}/include" "-L ${cudatoolkit}/lib" ]
|
||||
++ lib.optionals cudnnSupport [ "-I ${cudnn}/include" "-L ${cudnn}/lib" ]
|
||||
++ lib.optionals cudaSupport [ "-I ${libgpuarray}/include" "-L ${libgpuarray}/lib" ];
|
||||
wrapped = command: buildTop: buildInputs:
|
||||
runCommandCC "${command}-wrapped" { inherit buildInputs; } ''
|
||||
type -P '${command}' || { echo '${command}: not found'; exit 1; }
|
||||
cat > "$out" <<EOF
|
||||
#!$(type -P bash)
|
||||
$(declare -xp | sed -e '/^[^=]\+="\('"''${NIX_STORE//\//\\/}"'\|[^\/]\)/!d')
|
||||
declare -x NIX_BUILD_TOP="${buildTop}"
|
||||
$(type -P '${command}') "\$@"
|
||||
EOF
|
||||
chmod +x "$out"
|
||||
'';
|
||||
|
||||
gcc_ = writeScriptBin "g++" ''
|
||||
#!${stdenv.shell}
|
||||
export NIX_CC_WRAPPER_${stdenv.cc.infixSalt}_TARGET_HOST=1
|
||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE ${toString extraFlags}"
|
||||
exec ${gcc}/bin/g++ "$@"
|
||||
'';
|
||||
# Theano spews warnings and disabled flags if the compiler isn't named g++
|
||||
cxx_compiler = wrapped "g++" "\\$HOME/.theano"
|
||||
( stdenv.lib.optional cudaSupport libgpuarray_
|
||||
++ stdenv.lib.optional cudnnSupport cudnn );
|
||||
|
||||
libgpuarray_ = libgpuarray.override { inherit cudaSupport; };
|
||||
libgpuarray_ = libgpuarray.override { inherit cudaSupport cudatoolkit; };
|
||||
|
||||
in buildPythonPackage rec {
|
||||
pname = "Theano";
|
||||
@@ -50,12 +55,15 @@ in buildPythonPackage rec {
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's,g++,${gcc_}/bin/g++,g' theano/configdefaults.py
|
||||
'' + lib.optionalString cudnnSupport ''
|
||||
sed -i \
|
||||
-e "s,ctypes.util.find_library('cudnn'),'${cudnn}/lib/libcudnn.so',g" \
|
||||
-e "s/= _dnn_check_compile()/= (True, None)/g" \
|
||||
theano/gpuarray/dnn.py
|
||||
substituteInPlace theano/configdefaults.py \
|
||||
--replace 'StrParam(param, is_valid=warn_cxx)' 'StrParam('\'''${cxx_compiler}'\''', is_valid=warn_cxx)' \
|
||||
--replace 'rc == 0 and config.cxx != ""' 'config.cxx != ""'
|
||||
'' + stdenv.lib.optionalString cudaSupport ''
|
||||
substituteInPlace theano/configdefaults.py \
|
||||
--replace 'StrParam(get_cuda_root)' 'StrParam('\'''${cudatoolkit}'\''')'
|
||||
'' + stdenv.lib.optionalString cudnnSupport ''
|
||||
substituteInPlace theano/configdefaults.py \
|
||||
--replace 'StrParam(default_dnn_base_path)' 'StrParam('\'''${cudnn}'\''')'
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "XlsxWriter";
|
||||
version = "1.0.5";
|
||||
version = "1.0.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "bd4661c04a68621cb2ebc07c38b8b2e98e30bf213a16e1cf3675b61e26ca9bf2";
|
||||
sha256 = "98a94b32d4929d3e34595b4654b8e7f951182f540056b9cb734c88899912f729";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "absl-py";
|
||||
version = "0.2.2";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e0eb8358b549552b1cc5972350bc3e41dd0a926c15b3ff95ce60f3c78c80824c";
|
||||
sha256 = "1e6e70506fb4d867cf269af7bcc27b744c36bbc4c516f0f8ccf2039956deea72";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
@@ -27,4 +27,8 @@ buildPythonPackage rec {
|
||||
checkInputs = [ nose ];
|
||||
|
||||
postUnpack = "sourceRoot=\${sourceRoot}/acme";
|
||||
|
||||
meta = certbot.meta // {
|
||||
description = "ACME protocol implementation in Python";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiofiles";
|
||||
version = "0.3.2";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "852a493a877b73e11823bfd4e8e5ef2610d70d12c9eaed961bcd9124d8de8c10";
|
||||
sha256 = "021ea0ba314a86027c166ecc4b4c07f2d40fc0f4b3a950d1868a0f2571c2bbee";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.3";
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohue";
|
||||
version = "1.6.0";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "87f0f86865e88ea715ab358b1e5f2838b79ee7cdc0bdf762e9ed60aaf4c8bd4a";
|
||||
sha256 = "26989babdc3f38575164b60b9536309271d58db005a03045b6e9cca4fc5201d8";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "allpairspy";
|
||||
version = "2.4.0";
|
||||
version = "2.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9fb7962ee523bd96c5098cd3c97ac1b8eb73021d3df9314657ee9de00f52e034";
|
||||
sha256 = "e8b35751f91692bf0318091b3f44cdf9bbbe3f37a2ff4786eaffc09dc7114fb3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
@@ -15,5 +15,6 @@ buildPythonPackage rec {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://code.google.com/p/py-amqplib/;
|
||||
description = "Python client for the Advanced Message Queuing Procotol (AMQP)";
|
||||
license = licenses.lgpl21;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ buildPythonPackage, fetchPypi }:
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansi";
|
||||
@@ -12,4 +12,10 @@ buildPythonPackage rec {
|
||||
checkPhase = ''
|
||||
python -c "import ansi.color"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "ANSI cursor movement and graphics";
|
||||
homepage = https://github.com/tehmaze/ansi/;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ buildPythonPackage, fetchPypi, isPy3k, nose }:
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "anyjson";
|
||||
@@ -14,8 +14,9 @@ buildPythonPackage rec {
|
||||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
meta = {
|
||||
homepage = https://pypi.python.org/pypi/anyjson/;
|
||||
meta = with lib; {
|
||||
homepage = https://bitbucket.org/runeh/anyjson/;
|
||||
description = "Wrapper that selects the best available JSON implementation";
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ buildPythonPackage, fetchdarcs, zope_interface, isPy3k }:
|
||||
{ lib, buildPythonPackage, fetchdarcs, zope_interface, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-application";
|
||||
@@ -12,4 +12,10 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
buildInputs = [ zope_interface ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Basic building blocks for python applications";
|
||||
homepage = https://github.com/AGProjects/python-application;
|
||||
license = licenses.lgpl2Plus;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ buildPythonPackage, fetchPypi
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, boto }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -14,4 +14,10 @@ buildPythonPackage rec {
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ boto ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Interface to Route53";
|
||||
homepage = https://github.com/mariusv/Area53;
|
||||
license = licenses.unfree; # unspecified
|
||||
};
|
||||
}
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "argon2_cffi";
|
||||
version = "18.1.0";
|
||||
version = "18.3.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7e4b75611b73f53012117ad21cdde7a17b32d1e99ff6799f22d827eb83a2a59b";
|
||||
sha256 = "003f588de43a817af6ecc1c06103fa0801de63849db3cb0f37576bb2da29043d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cffi six ];
|
||||
|
||||
@@ -14,7 +14,6 @@ buildPythonPackage rec {
|
||||
sha256 = "1kp2iyx20lpc9dv4qg5fgwf83a1wx6f7hj1ldqyncg0kn9xcrhbg";
|
||||
};
|
||||
|
||||
# Required for tests only
|
||||
checkInputs = [ mock ];
|
||||
|
||||
checkPhase = "${python.interpreter} -m unittest discover -s tests";
|
||||
|
||||
36
pkgs/development/python-modules/ase/default.nix
Normal file
36
pkgs/development/python-modules/ase/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, buildPythonPackage
|
||||
, numpy
|
||||
, scipy
|
||||
, matplotlib
|
||||
, flask
|
||||
, pillow
|
||||
, psycopg2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "3.16.2";
|
||||
pname = "ase";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://gitlab.com/${pname}/${pname}/-/archive/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "171j3f4a261cfnqjq98px5fldxql65i3jgf60wc945xvh0mbc8ds";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy matplotlib flask pillow psycopg2 ];
|
||||
|
||||
checkPhase = ''
|
||||
$out/bin/ase test
|
||||
'';
|
||||
|
||||
# tests just hang most likely due to something with subprocesses and cli
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Atomic Simulation Environment";
|
||||
homepage = https://wiki.fysik.dtu.dk/ase/;
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = with lib.maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -5,13 +5,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astroid";
|
||||
version = "2.0.1";
|
||||
version = "2.0.4";
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "218e36cf8d98a42f16214e8670819ce307fa707d1dcf7f9af84c7aede1febc7f";
|
||||
sha256 = "c7013d119ec95eb626f7a2011f0b63d0c9a095df9ad06d8507b37084eada1a8d";
|
||||
};
|
||||
|
||||
# From astroid/__pkginfo__.py
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astropy";
|
||||
version = "3.0.3";
|
||||
version = "3.0.4";
|
||||
|
||||
disabled = !isPy3k; # according to setup.py
|
||||
|
||||
@@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6af07abe5e263820a3dec93832a6ad74005013071490e125afbc6514411721da";
|
||||
sha256 = "f5d37d20632ba74bd0b12a85179c12f64a9ea037ffc916d8a2de3be4f4656c76";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "async_generator";
|
||||
version = "1.9";
|
||||
version = "1.10";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b7d5465c6174fe86dba498ececb175f93a6097ffb7cc91946405e1f05b848371";
|
||||
sha256 = "6ebb3d106c12920aaae42ccb6f787ef5eefdcdd166ea3d628fa8476abe712144";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytest-asyncio ];
|
||||
|
||||
@@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||
Authentication-Results Headers generation and parsing for
|
||||
Python/Python3.
|
||||
'';
|
||||
homepage = https://launchpad.net/authres;
|
||||
homepage = https://launchpad.net/authentication-results-python;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ leenaars ];
|
||||
};
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, isPy33,
|
||||
unittest2, mock, pytest, trollius, asyncio,
|
||||
pytest-asyncio, futures,
|
||||
pytest-asyncio, futures, cffi,
|
||||
six, twisted, txaio, zope_interface
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "autobahn";
|
||||
version = "18.6.1";
|
||||
version = "18.8.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2f41bfc512ec482044fa8cfa74182118dedd87e03b3494472d9ff1b5a1e27d24";
|
||||
sha256 = "b69858e0be4bff8437b0bd82a0db1cbef7405e16bd9354ba587c043d6d5e1ad9";
|
||||
};
|
||||
|
||||
# Upstream claim python2 support, but tests require pytest-asyncio which
|
||||
# is pythn3 only. Therefore, tests are skipped for python2.
|
||||
doCheck = isPy3k;
|
||||
buildInputs = stdenv.lib.optionals isPy3k [ unittest2 mock pytest pytest-asyncio ];
|
||||
propagatedBuildInputs = [ six twisted zope_interface txaio ] ++
|
||||
checkInputs = stdenv.lib.optionals isPy3k [ unittest2 mock pytest pytest-asyncio ];
|
||||
propagatedBuildInputs = [ cffi six twisted zope_interface txaio ] ++
|
||||
(stdenv.lib.optional isPy33 asyncio) ++
|
||||
(stdenv.lib.optionals (!isPy3k) [ trollius futures ]);
|
||||
|
||||
@@ -29,6 +29,5 @@ buildPythonPackage rec {
|
||||
homepage = "https://crossbar.io/autobahn";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nand0p ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, boto3, requests, click, configparser }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.12.0";
|
||||
version = "0.12.1";
|
||||
pname = "aws-adfs";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1cjrm61k6905dmhgrqyc5caxx5hbhj3sr6cx4r6sbdyz453i7pc6";
|
||||
sha256 = "72725d7005252b96ccfa9719fe4beec2b86301bff894d4d97a50fc1d05393fd8";
|
||||
};
|
||||
|
||||
# Relax version constraint
|
||||
|
||||
@@ -20,14 +20,16 @@ if !(pythonOlder "3.3") then null else buildPythonPackage rec {
|
||||
|
||||
buildInputs = [ lzma ];
|
||||
|
||||
# Needs the compiled module in $out
|
||||
checkPhase = ''
|
||||
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH ${python.interpreter} -m unittest discover -s test
|
||||
${python.interpreter} test/test_lzma.py
|
||||
'';
|
||||
|
||||
# Relative import does not seem to function.
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files";
|
||||
homepage = https://github.com/peterjc/backports.lzma;
|
||||
license = lib.licenses.bsd3;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "beautifulsoup4";
|
||||
version = "4.6.0";
|
||||
version = "4.6.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "12cf0ygpz9srpfh9gx2f9ba0swa1rzypv3sm4r0hmjyw6b4nm2w0";
|
||||
sha256 = "90f8e61121d6ae58362ce3bed8cd997efb00c914eae0ff3d363c32f9a9822d10";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
@@ -19,5 +19,6 @@ buildPythonPackage rec {
|
||||
description = "Bitbucket command line interface";
|
||||
homepage = https://bitbucket.org/zhemao/bitbucket-cli;
|
||||
maintainers = with maintainers; [ refnil ];
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bitmath";
|
||||
version = "1.3.1.2";
|
||||
version = "1.3.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1k8d1wmxqjc8cqzaixpxf45k6dl1kqhblr0g4wyjl0qa18q8wasd";
|
||||
sha256 = "293325f01e65defe966853111df11d39215eb705a967cb115851da8c4cfa3eb8";
|
||||
};
|
||||
|
||||
checkInputs = [ (if isPy3k then progressbar33 else progressbar231) mock ];
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bleach";
|
||||
version = "2.1.3";
|
||||
version = "2.1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "eb7386f632349d10d9ce9d4a838b134d4731571851149f9cc2c05a9a837a9a44";
|
||||
sha256 = "0ee95f6167129859c5dce9b1ca291ebdb5d8cd7e382ca0e237dfd0dad63f63d8";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytestrunner ];
|
||||
|
||||
@@ -9,9 +9,9 @@ let
|
||||
};
|
||||
setuptools_source = fetchPypi {
|
||||
pname = "setuptools";
|
||||
version = "40.0.0";
|
||||
version = "40.2.0";
|
||||
format = "wheel";
|
||||
sha256 = "d68abee4eed409fbe8c302ac4d8429a1ffef912cd047a903b5701c024048dd49";
|
||||
sha256 = "ea3796a48a207b46ea36a9d26de4d0cc87c953a683a7b314ea65d666930ea8e6";
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "boto3";
|
||||
version = "1.7.57";
|
||||
version = "1.7.84";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "boto";
|
||||
repo = "boto3";
|
||||
rev = version;
|
||||
sha256 = "0rp3vclx7mvfl6isa47m7dzlrf33qb9vj53p0gj4cw3mgl14cnbl";
|
||||
sha256 = "0d9kqjqmnn53p1xpmdbbjxcxv2482yx3vjhxw8izp0mpq58i5c14";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "botocore";
|
||||
version = "1.10.65";
|
||||
version = "1.10.84";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "35f626029a6b17bfd503ce3379b121606e3f965edcab2612bc75ce8603fdf08c";
|
||||
sha256 = "d3e4b5a2c903ea30d19d41ea2f65d0e51dce54f4f4c4dfd6ecd7b04f240844a8";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, pytest
|
||||
, numpy
|
||||
, python
|
||||
}:
|
||||
@@ -15,10 +16,10 @@ buildPythonPackage rec {
|
||||
sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
checkInputs = [ pytest nose ];
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
checkPhase = ''
|
||||
nosetests -v $out/${python.sitePackages}
|
||||
py.test -p no:warnings $out/${python.sitePackages}
|
||||
'';
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, docutils, six, sphinx, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "4.9.1";
|
||||
version = "4.10.0";
|
||||
pname = "breathe";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "76e1f3706efeda2610d9a8e7b421d2877ff0654a3fe6d3190a8686536111a684";
|
||||
sha256 = "e94370b8b607a32d9611ed8246e635f02c21dc6847f04e888a00f66a12694eff";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ docutils six sphinx ];
|
||||
|
||||
24
pkgs/development/python-modules/browser-cookie3/default.nix
Normal file
24
pkgs/development/python-modules/browser-cookie3/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, isPy3k, keyring, pbkdf2, pyaes}:
|
||||
buildPythonPackage rec {
|
||||
pname = "browser-cookie3";
|
||||
version = "0.6.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "16nghwsrv08gz4iiyxsy5lgg5ljgrwkp471m7xnsvhhpb3axmnsc";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ keyring pbkdf2 pyaes ];
|
||||
|
||||
# No tests implemented
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Loads cookies from your browser into a cookiejar object";
|
||||
maintainers = with maintainers; [ borisbabic ];
|
||||
homepage = https://github.com/borisbabic/browser_cookie3;
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
}
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "BTrees";
|
||||
version = "4.5.0";
|
||||
version = "4.5.1";
|
||||
|
||||
buildInputs = [ transaction ];
|
||||
propagatedBuildInputs = [ persistent zope_interface ];
|
||||
@@ -17,7 +17,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "46b02cb69b26a5238db771ea1955b503df73ecf254bb8063af4c61999fc75b5c";
|
||||
sha256 = "dcc096c3cf92efd6b9365951f89118fd30bc209c9af83bf050a28151a9992786";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bugwarrior";
|
||||
version = "1.5.1";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0kxknjbw5kchd88i577vlzibg8j60r7zzdhbnragj9wg5s3w60xb";
|
||||
sha256 = "cfa4fac19b4f4638928347b8fe192315f72813c3e8ed668867e5891338c7e4ec";
|
||||
};
|
||||
|
||||
buildInputs = [ mock unittest2 nose /* jira megaplan */ ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zc.buildout";
|
||||
version = "2.2.5";
|
||||
version = "2.12.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "fb08f24f9e51e647e29d714f6e9ad51a4ea28673dddeed831315617bb5a805d0";
|
||||
sha256 = "1e180b62fd129a68cb3a9ec8eb0ef457e18921269a93e87ef2cc34519415332d";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, boto, crcmod, psutil }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "buttersink";
|
||||
version = "0.6.9";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c9c05982c44fbb85f17b7ef0e8bee11f375c03d89bcba50cbc2520013512107a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ boto crcmod psutil ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Synchronise btrfs snapshots";
|
||||
longDescription = ''
|
||||
ButterSink is like rsync, but for btrfs subvolumes instead of files,
|
||||
which makes it much more efficient for things like archiving backup
|
||||
snapshots. It is built on top of btrfs send and receive capabilities.
|
||||
Sources and destinations can be local btrfs file systems, remote btrfs
|
||||
file systems over SSH, or S3 buckets.
|
||||
'';
|
||||
homepage = https://github.com/AmesCornish/buttersink/wiki;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
diff --git a/cairocffi/test_cairo.py b/cairocffi/test_cairo.py
|
||||
index 1588349..5452910 100644
|
||||
--- a/cairocffi/test_cairo.py
|
||||
+++ b/cairocffi/test_cairo.py
|
||||
@@ -292,7 +292,8 @@ def test_pdf_surface():
|
||||
pdf_bytes = file_obj.getvalue()
|
||||
assert pdf_bytes.startswith(b'%PDF')
|
||||
assert b'/MediaBox [ 0 0 123 432 ]' in pdf_bytes
|
||||
- assert pdf_bytes.count(b'/Type /Page\n') == 1
|
||||
+ assert pdf_bytes.count(b'/Type /Pages') == 1
|
||||
+ assert pdf_bytes.count(b'/Type /Page') == 2
|
||||
|
||||
file_obj = io.BytesIO()
|
||||
surface = PDFSurface(file_obj, 1, 1)
|
||||
@@ -306,7 +307,8 @@ def test_pdf_surface():
|
||||
assert b'/MediaBox [ 0 0 1 1 ]' not in pdf_bytes
|
||||
assert b'/MediaBox [ 0 0 12 100 ]' in pdf_bytes
|
||||
assert b'/MediaBox [ 0 0 42 700 ]' in pdf_bytes
|
||||
- assert pdf_bytes.count(b'/Type /Page\n') == 2
|
||||
+ assert pdf_bytes.count(b'/Type /Pages') == 1
|
||||
+ assert pdf_bytes.count(b'/Type /Page') == 3
|
||||
|
||||
|
||||
def test_svg_surface():
|
||||
@@ -17,11 +17,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cairocffi";
|
||||
version = "0.8.1";
|
||||
version = "0.9.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0y373vafv7q35msg7gqdn7niifr3j4j4n070hflxshahs59irss7";
|
||||
sha256 = "15386c3a9e08823d6826c4491eaccc7b7254b1dc587a3b9ce60c350c3f990337";
|
||||
};
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
@@ -49,7 +49,6 @@ buildPythonPackage rec {
|
||||
gdk_pixbuf = gdk_pixbuf.out;
|
||||
})
|
||||
./fix_test_scaled_font.patch
|
||||
./cairocffi-0.8.1-cairo-1.15.12.patch
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -2,7 +2,18 @@
|
||||
pytest, case, kombu, billiard, pytz, anyjson, amqp, eventlet
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
let
|
||||
|
||||
# Needed for celery
|
||||
pytest_32 = pytest.overridePythonAttrs( oldAttrs: rec {
|
||||
version = "3.2.5";
|
||||
src = oldAttrs.src.override {
|
||||
inherit version;
|
||||
sha256 = "6d5bd4f7113b444c55a3bbb5c738a3dd80d43563d063fc42dcb0aaefbdd78b81";
|
||||
};
|
||||
});
|
||||
|
||||
in buildPythonPackage rec {
|
||||
pname = "celery";
|
||||
version = "4.2.0";
|
||||
|
||||
@@ -27,7 +38,7 @@ buildPythonPackage rec {
|
||||
unset NIX_REDIRECTS LD_PRELOAD
|
||||
'';
|
||||
|
||||
buildInputs = [ pytest case ];
|
||||
checkInputs = [ pytest_32 case ];
|
||||
propagatedBuildInputs = [ kombu billiard pytz anyjson amqp eventlet ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cement";
|
||||
version = "2.10.12";
|
||||
version = "3.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "58efb4eacd9ec977ce797a364a13851de6e42392bbde5287d44294f06c5a2f70";
|
||||
sha256 = "e50e1033d61d18b36787a60d52cad0d3fe20780e7e2f78f0204bde32000645f9";
|
||||
};
|
||||
|
||||
# Disable test tests since they depend on a memcached server running on
|
||||
# 127.0.0.1:11211.
|
||||
doCheck = false;
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://builtoncement.com/;
|
||||
description = "A CLI Application Framework for Python.";
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "certifi";
|
||||
version = "2018.4.16";
|
||||
version = "2018.8.24";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "13e698f54293db9f89122b0581843a782ad0934a4fe0172d2a980ba77fc61bb7";
|
||||
sha256 = "376690d6f16d32f9d1fe8932551d80b23e9d393a8578c5633a2ed39a64861638";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cftime";
|
||||
version = "1.0.0";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f62fe79ed2ad38f4211477e59f6f045c91278351f4ce7578e33ddf52fb121ea8";
|
||||
sha256 = "20556931f546838d09be5d589482dfae6164e0d403f0aab2163c006b680d3b92";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest coveralls pytestcov ];
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "chainer";
|
||||
version = "4.3.0";
|
||||
version = "4.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a83044256edb1946c47cb9ae687d195c2aa0deaef46ab85a8ffc4a01f7001683";
|
||||
sha256 = "9cc4d43e1ea3e0766e211e4e755dbb879f2cf27a805cfa52e32b99fd1e5f24dd";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "channels";
|
||||
version = "2.1.2";
|
||||
version = "2.1.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "173441ccf2ac3a93c3b4f86135db301cbe95be58f5815c1e071f2e7154c192a2";
|
||||
sha256 = "8d503d18b92cef488ba68808a2205e055d29a6a1abae92d277f8f7a9c8752f13";
|
||||
};
|
||||
|
||||
# Files are missing in the distribution
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, cheroot, portend, routes, six
|
||||
, setuptools_scm
|
||||
, cheroot, contextlib2, portend, routes, six
|
||||
, setuptools_scm, zc_lockfile
|
||||
, backports_unittest-mock, objgraph, pathpy, pytest, pytestcov
|
||||
, backports_functools_lru_cache, requests_toolbelt
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "CherryPy";
|
||||
version = "17.0.0";
|
||||
version = "17.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3cdb5fbae183db49ab1f1a90643d521aa060c93f90001cc99c19d8d15b7a3fb7";
|
||||
sha256 = "c3e4d76232ade4c47666b9008f92556465df517b8dca833ece3bed027028ae7d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cheroot portend routes six ];
|
||||
propagatedBuildInputs = [ cheroot contextlib2 portend routes six zc_lockfile ];
|
||||
|
||||
buildInputs = [ setuptools_scm ];
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cloudpickle";
|
||||
version = "0.5.3";
|
||||
version = "0.5.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "54858c7b7dc763ed894ff91059c1d0b017d593fe23850d3d8d75f47d98398197";
|
||||
sha256 = "6ea4b548f61a4f616b065182716318c7dced8c053517f35ac59cec22802daf3d";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest mock ];
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder, isPy3k
|
||||
, pyperclip, six, pyparsing, vim, wcwidth, colorama
|
||||
, contextlib2 ? null
|
||||
, contextlib2 ? null, setuptools_scm
|
||||
, pytest, mock, which, glibcLocales
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "cmd2";
|
||||
version = "0.9.3";
|
||||
version = "0.9.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "cffc94ad46425f80dfb243f53f456b11cea3f45e683504a60b64618a6d28b417";
|
||||
sha256 = "0037dcf92331c63ae43e7e644536e646fff8be2fd5a83da06b3482f910f929c6";
|
||||
};
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
@@ -31,6 +31,10 @@ buildPythonPackage rec {
|
||||
doCheck = !stdenv.isDarwin;
|
||||
disabled = !isPy3k;
|
||||
|
||||
buildInputs = [
|
||||
setuptools_scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
colorama
|
||||
pyperclip
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "coveralls";
|
||||
name = "${pname}-python-${version}";
|
||||
version = "1.3.0";
|
||||
version = "1.4.0";
|
||||
|
||||
# wanted by tests
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "664794748d2e5673e347ec476159a9d87f43e0d2d44950e98ed0e27b98da8346";
|
||||
sha256 = "7ddb2e3114db9604a7cb1fcc68a7dcca32dce346f5ba568c99979b38e166f5a6";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
|
||||
38
pkgs/development/python-modules/cozy/default.nix
Normal file
38
pkgs/development/python-modules/cozy/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ buildPythonPackage, fetchFromGitHub, lib,
|
||||
z3, ply, python-igraph, oset, ordered-set, dictionaries }:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "cozy";
|
||||
version = "2.0a1";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
z3 ply python-igraph oset ordered-set dictionaries
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CozySynthesizer";
|
||||
repo = "cozy";
|
||||
rev = "f553e9b";
|
||||
sha256 = "1jhr5gzihj8dkg0yc5dmi081v2isxharl0ph7v2grqj0bwqzl40j";
|
||||
};
|
||||
|
||||
# Yoink the Z3 dependency name, because our Z3 package doesn't provide it.
|
||||
postPatch = ''
|
||||
sed -i -e '/z3-solver/d' requirements.txt
|
||||
'';
|
||||
|
||||
# Tests are not correctly set up in the source tree.
|
||||
doCheck = false;
|
||||
|
||||
# There is some first-time-run codegen that we will force to happen.
|
||||
postInstall = ''
|
||||
$out/bin/cozy --help
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "The collection synthesizer";
|
||||
homepage = https://cozy.uwplse.org/;
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.MostAwesomeDude ];
|
||||
};
|
||||
}
|
||||
@@ -20,16 +20,14 @@
|
||||
, hypothesis
|
||||
}:
|
||||
|
||||
let
|
||||
version = "2.3";
|
||||
in assert version == cryptography_vectors.version; buildPythonPackage rec {
|
||||
buildPythonPackage rec {
|
||||
# also bump cryptography_vectors
|
||||
pname = "cryptography";
|
||||
inherit version;
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c132bab45d4bd0fff1d3fe294d92b0a6eb8404e93337b3127bdec9f21de117e6";
|
||||
sha256 = "8d10113ca826a4c29d5b85b2c4e045ffa8bad74fb525ee0eceb1d38d4c70dfd6";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
@@ -64,4 +62,4 @@ in assert version == cryptography_vectors.version; buildPythonPackage rec {
|
||||
# IOKit's dependencies are inconsistent between OSX versions, so this is the best we
|
||||
# can do until nix 1.11's release
|
||||
__impureHostDeps = [ "/usr/lib" ];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
buildPythonPackage rec {
|
||||
# also bump cryptography
|
||||
pname = "cryptography_vectors";
|
||||
version = "2.3";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "356a2ded84ae379e556515eec9b68dd74957651a38465d10605bb9fbae280f15";
|
||||
sha256 = "bf4d9b61dce69c49e830950aa36fad194706463b0b6dfe81425b9e0bc6644d46";
|
||||
};
|
||||
|
||||
# No tests included
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cupy";
|
||||
version = "4.3.0";
|
||||
version = "4.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ea818ff7f36cf6e5b3d3faef5af36a501c8bdeb78805820afa2999789ed698d5";
|
||||
sha256 = "fca0e3d3fdad4c825197ea421bed0d253224b44daf738d82af5cba856c1c0b3e";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
|
||||
@@ -15,12 +15,12 @@ if isPyPy then throw "dbus-python not supported for interpreter ${python.executa
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ dbus dbus-glib ]
|
||||
++ lib.optionals doCheck [ dbus.out pygobject3 ]
|
||||
# My guess why it's sometimes trying to -lncurses.
|
||||
# It seems not to retain the dependency anyway.
|
||||
++ lib.optional (! python ? modules) ncurses;
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [ dbus.out pygobject3 ];
|
||||
|
||||
meta = {
|
||||
description = "Python DBus bindings";
|
||||
|
||||
@@ -1,14 +1,22 @@
|
||||
{ buildPythonPackage, fetchPypi
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, chardet, six}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-debian";
|
||||
version = "0.1.32";
|
||||
version = "0.1.33";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "143887ac647ad30819f289f5a4ca13b77e56df27b686b84c34669447f7591280";
|
||||
sha256 = "06e91d45019fe5f2e111ba827ea77730d6ce2fea698ada4e5b0b70b5fdbc18c5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ chardet six ];
|
||||
|
||||
# No tests in archive
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Debian package related modules";
|
||||
license = lib.licenses.gpl2;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "deform";
|
||||
version = "2.0.5";
|
||||
version = "2.0.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "874d3346a02c500432efdcc73b1a7174aa0ea69cd52a99bb9a812967f54f6f79";
|
||||
sha256 = "bda0b809c8a668e105e30650a6766103207eafdd12c313acd59274ccd2c4d297";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dependency-injector";
|
||||
version = "3.13.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0bmcgdfjavgxdzkb904q968ig1x44arvpj2m4rpm5nc9vhhgq43q";
|
||||
};
|
||||
|
||||
# TODO: Enable tests after upstream merges https://github.com/ets-labs/python-dependency-injector/pull/204
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Dependency injection microframework for Python";
|
||||
homepage = https://github.com/ets-labs/python-dependency-injector;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ gerschtli ];
|
||||
};
|
||||
}
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "detox";
|
||||
version = "0.12";
|
||||
version = "0.13";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "06svvkszg6xlg0fr471smn4rmpfga960d6qqsyhyiwa48k59n4gk";
|
||||
sha256 = "f0c2af9c29f8e200a50b561ccc531df3087c80e7d3de6cfa9828f5fea3c8f56c";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
47
pkgs/development/python-modules/dftfit/default.nix
Normal file
47
pkgs/development/python-modules/dftfit/default.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, pymatgen
|
||||
, marshmallow
|
||||
, pyyaml
|
||||
, pygmo
|
||||
, pandas
|
||||
, scipy
|
||||
, numpy
|
||||
, scikitlearn
|
||||
, lammps-cython
|
||||
, pymatgen-lammps
|
||||
, pytestrunner
|
||||
, pytest
|
||||
, pytestcov
|
||||
, pytest-benchmark
|
||||
, isPy3k
|
||||
, openssh
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dftfit";
|
||||
version = "0.4.22";
|
||||
disabled = (!isPy3k);
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "06dbdc21cf9ed199bfceae5301172bee2164a3b9ef6f0814a089530c320ebb3a";
|
||||
};
|
||||
|
||||
buildInputs = [ pytestrunner ];
|
||||
checkInputs = [ pytest pytestcov pytest-benchmark openssh ];
|
||||
propagatedBuildInputs = [ pymatgen marshmallow pyyaml pygmo
|
||||
pandas scipy numpy scikitlearn
|
||||
lammps-cython pymatgen-lammps ];
|
||||
|
||||
# tests require git lfs download. and is quite large so skip tests
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Ab-Initio Molecular Dynamics Potential Development";
|
||||
homepage = https://gitlab.com/costrouc/dftfit;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
19
pkgs/development/python-modules/dictionaries/default.nix
Normal file
19
pkgs/development/python-modules/dictionaries/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ buildPythonPackage, fetchPypi, lib, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dictionaries";
|
||||
version = "0.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1jx2ph509sk4l7spslz16y8l6xn97d13nspn4ds2lxn5ward9ihy";
|
||||
};
|
||||
|
||||
buildInputs = [ six ];
|
||||
|
||||
meta = {
|
||||
description = "Dict implementations with attribute access";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.MostAwesomeDude ];
|
||||
};
|
||||
}
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Django";
|
||||
version = "1.11.13";
|
||||
version = "1.11.15";
|
||||
|
||||
disabled = pythonOlder "2.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.djangoproject.com/m/releases/1.11/${pname}-${version}.tar.gz";
|
||||
sha256 = "19d4c1rlbhmbvbxvskvqjb2aw4dnf2cqi1hhdh11ykdy1a7gxba6";
|
||||
sha256 = "0h2sl02x2mxr3rl3dy750pzm5kvmx77116fys8rrgw164kc3b0mi";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optionals withGdal [
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Django";
|
||||
version = "2.0.7";
|
||||
version = "2.0.8";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "97886b8a13bbc33bfeba2ff133035d3eca014e2309dff2b6da0bdfc0b8656613";
|
||||
sha256 = "12z3b9v0zl7w9bm5sl7dpkk5w35ypalizfmnaj9jac41k8vfmbk8";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optionals withGdal [
|
||||
|
||||
43
pkgs/development/python-modules/django/2_1.nix
Normal file
43
pkgs/development/python-modules/django/2_1.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, substituteAll,
|
||||
isPy3k,
|
||||
geos, gdal, pytz,
|
||||
withGdal ? false
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Django";
|
||||
version = "2.1";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0dv184lgp7scq8cr4422rrvkd8npyiqww0zw50ygcim5smw6093z";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optionals withGdal [
|
||||
(substituteAll {
|
||||
src = ./1.10-gis-libs.template.patch;
|
||||
geos = geos;
|
||||
gdal = gdal;
|
||||
extension = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||
})
|
||||
];
|
||||
|
||||
# patch only $out/bin to avoid problems with starter templates (see #3134)
|
||||
postFixup = ''
|
||||
wrapPythonProgramsIn $out/bin "$out $pythonPath"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ pytz ];
|
||||
|
||||
# too complicated to setup
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A high-level Python Web framework";
|
||||
homepage = https://www.djangoproject.com/;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ georgewhewell ];
|
||||
};
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
||||
, boto, redis, setuptools, simplejson }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "docker-registry-core";
|
||||
version = "2.0.3";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0q036rr0b5734szkj883hkb2kjhgcc5pm3dz4yz8vcim3x7q0zil";
|
||||
};
|
||||
|
||||
DEPS = "loose";
|
||||
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [ boto redis setuptools simplejson ];
|
||||
|
||||
patchPhase = "> requirements/main.txt";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Docker registry core package";
|
||||
homepage = https://github.com/docker/docker-registry;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
@@ -3,12 +3,12 @@
|
||||
, ipaddress, backports_ssl_match_hostname, docker_pycreds
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
version = "3.4.1";
|
||||
version = "3.5.0";
|
||||
pname = "docker";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ad077b49660b711d20f50f344f70cfae014d635ef094bf21b0d7df5f0aeedf99";
|
||||
sha256 = "bc693be5a84b3b9e5aaf156068c5c0a445ee5138c638c3fbc857133bf67ebe07";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
33
pkgs/development/python-modules/docrep/default.nix
Normal file
33
pkgs/development/python-modules/docrep/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "docrep";
|
||||
version = "0.2.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7d195b6dfcf4efe5cb65402b6c6f6d7e6db77ce255887fae32c9a8288a022659";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
# tests not packaged with PyPi download
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Python package for docstring repetition";
|
||||
homepage = https://github.com/Chilipp/docrep;
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = with lib.maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
35
pkgs/development/python-modules/docutils/default.nix
Normal file
35
pkgs/development/python-modules/docutils/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "docutils";
|
||||
version = "0.14";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/docutils/${pname}.tar.gz";
|
||||
sha256 = "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji";
|
||||
};
|
||||
|
||||
checkPhase = if isPy3k then ''
|
||||
${python.interpreter} test3/alltests.py
|
||||
'' else ''
|
||||
${python.interpreter} test/alltests.py
|
||||
'';
|
||||
|
||||
# Create symlinks lacking a ".py" suffix, many programs depend on these names
|
||||
postFixup = ''
|
||||
(cd $out/bin && for f in *.py; do
|
||||
ln -s $f $(echo $f | sed -e 's/\.py$//')
|
||||
done)
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Docutils -- Python Documentation Utilities";
|
||||
homepage = http://docutils.sourceforge.net/;
|
||||
maintainers = with lib.maintainers; [ garbas AndersonTorres ];
|
||||
};
|
||||
}
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dogpile.cache";
|
||||
version = "0.6.6";
|
||||
version = "0.6.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "044d4ea0a0abc72491044f3d3df8e1fc9e8fa7a436c6e9a0da5850d23a0d16c1";
|
||||
sha256 = "fca7deb7c276b879b01c15c5d39b3c05701dc43b263ec3fef1e52cb851cf88ab";
|
||||
};
|
||||
|
||||
# Disable concurrency tests that often fail,
|
||||
|
||||
20
pkgs/development/python-modules/dominate/default.nix
Normal file
20
pkgs/development/python-modules/dominate/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dominate";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0s9s9j9xmhkzw7apqx170fyvc0f800fd4a5jfn8xvj9k6vryd32b";
|
||||
};
|
||||
|
||||
doCheck = !isPy3k;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/Knio/dominate/;
|
||||
description = "Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API";
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
@@ -4,12 +4,12 @@
|
||||
, git, glibcLocales }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.19.5";
|
||||
version = "0.19.6";
|
||||
pname = "dulwich";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "34f99e575fe1f1e89cca92cec1ddd50b4991199cb00609203b28df9eb83ce259";
|
||||
sha256 = "9a7dc5c5759f3d3b7a9ac0a684aa2c47f099e1722d9caab5b043cef1d73ff4a2";
|
||||
};
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "easydict";
|
||||
version = "1.7";
|
||||
version = "1.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1xpnwjdw4x5kficjgcajqcal6bxcb0ax8l6hdkww9fp6lrh28x8v";
|
||||
sha256 = "f1ec91110737a62fe28d14970ffa7a7c7b441a32e35a6f3da6a6082ffb7f9432";
|
||||
};
|
||||
|
||||
docheck = false; # No tests in archive
|
||||
|
||||
@@ -1,21 +1,20 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, hidapi
|
||||
, pycrypto, pillow, protobuf, future
|
||||
}:
|
||||
{ lib, fetchPypi, buildPythonPackage, isPy3k, future }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ECPy";
|
||||
version = "0.9.0";
|
||||
|
||||
disabled = !isPy3k;
|
||||
version = "0.9.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ef41346ae24789699f3bc3ddefbfac03ad6b73b7d3d19b998ba9ce47b67c7277";
|
||||
sha256 = "f0df66be67f3de0152dfb3c453f4247bdfa2b4e37aa75b98617a637376032229";
|
||||
};
|
||||
|
||||
buildInputs = [ hidapi pycrypto pillow protobuf future ];
|
||||
propagatedBuildInputs = lib.optional (!isPy3k) future;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
# No tests implemented
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pure Pyhton Elliptic Curve Library";
|
||||
homepage = https://github.com/ubinity/ECPy;
|
||||
license = licenses.asl20;
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, boto3
|
||||
, click
|
||||
, certifi
|
||||
, requests-aws4auth
|
||||
, voluptuous
|
||||
, pyyaml
|
||||
, elasticsearch
|
||||
@@ -22,17 +24,17 @@ buildPythonPackage rec {
|
||||
sha256 = "e75abeb7f7be939b1c64c071898760dc10ab5f08307c253fc074abf8a41a76f0";
|
||||
};
|
||||
|
||||
# The integration tests require a running elasticsearch cluster.
|
||||
postUnpackPhase = ''
|
||||
rm -r test/integration
|
||||
'';
|
||||
# The test hangs so we disable it.
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
certifi
|
||||
requests-aws4auth
|
||||
voluptuous
|
||||
pyyaml
|
||||
elasticsearch
|
||||
boto3
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
buildPythonPackage (rec {
|
||||
pname = "elasticsearch";
|
||||
version = "6.3.0";
|
||||
version = "6.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "80ff7a1a56920535a9987da333c7e385b2ded27595b6de33860707dab758efbe";
|
||||
sha256 = "aada5cfdc4a543c47098eb3aca6663848ef5d04b4324935ced441debc11ec98b";
|
||||
};
|
||||
|
||||
# Check is disabled because running them destroy the content of the local cluster!
|
||||
|
||||
@@ -8,11 +8,11 @@ assert pythonOlder "3.3" -> ipaddress != null;
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Faker";
|
||||
version = "0.8.17";
|
||||
version = "0.8.18";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0e9a1227a3a0f3297a485715e72ee6eb77081b17b629367042b586e38c03c867";
|
||||
sha256 = "0184fa252f86214308bb6bed344f96294f2e3528fbffafc727890cf2a86d6027";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
|
||||
20
pkgs/development/python-modules/fastcache/default.nix
Normal file
20
pkgs/development/python-modules/fastcache/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastcache";
|
||||
version = "1.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1rl489zfbm2x67n7i6r7r4nhrhwk6yz3yc7x9y2rky8p95vhaw46";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "C implementation of Python3 lru_cache for Python 2 and 3";
|
||||
homepage = https://github.com/pbrady/fastcache;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.bhipple ];
|
||||
};
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastrlock";
|
||||
version = "0.3";
|
||||
version = "0.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "00mr9b15d539z89ng5nf89s2ryhk90xwx95jal77ma0wslixrk5d";
|
||||
sha256 = "6abdbb35205792e2d2a8c441aaa41a613d43ee2d88b3af4fd9735ae7a5f7db6b";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "filelock";
|
||||
version = "3.0.4";
|
||||
version = "3.0.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "011327d4ed939693a5b28c0fdf2fd9bda1f68614c1d6d0643a89382ce9843a71";
|
||||
sha256 = "59ccab92fe118da7e5ce5a9fcd95506ade58d9d5f606db4922192524edfac820";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
20
pkgs/development/python-modules/flask-api/default.nix
Normal file
20
pkgs/development/python-modules/flask-api/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, flask, markdown }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-API";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0dffcy2hdkajbvl2wkz9dam49v05x9d87cf2mh2cyvza2c5ah47w";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ flask markdown ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/miracle2k/flask-assets;
|
||||
description = "Browsable web APIs for Flask";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
20
pkgs/development/python-modules/flask-bootstrap/default.nix
Normal file
20
pkgs/development/python-modules/flask-bootstrap/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, flask, visitor, dominate }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-Bootstrap";
|
||||
version = "3.3.7.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1j1s2bplaifsnmr8vfxa3czca4rz78xyhrg4chx39xl306afs26b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ flask visitor dominate ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/mbr/flask-bootstrap;
|
||||
description = "Ready-to-use Twitter-bootstrap for use in Flask.";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
20
pkgs/development/python-modules/flask-paginate/default.nix
Normal file
20
pkgs/development/python-modules/flask-paginate/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, flask }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flask-paginate";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0pgk6ngqzh7lgq2nr6hraqp3z76f3f0kjhai50vxb6j1civ8v3mn";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ flask ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/lixxu/flask-paginate;
|
||||
description = "Pagination support for Flask";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
@@ -14,15 +14,15 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "folium";
|
||||
version = "0.5.0";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "748944521146d85c6cd6230acf234e885864cd0f42fea3758d655488517e5e6e";
|
||||
sha256 = "08681be47b1861221bc7cf17b6e368a8d734db81682d716c22a11e839f47cb79";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest numpy nbconvert pandas mock ];
|
||||
propagatedBuildInputs = [ jinja2 branca six requests ];
|
||||
checkInputs = [ pytest nbconvert pandas mock ];
|
||||
propagatedBuildInputs = [ jinja2 branca six requests numpy ];
|
||||
|
||||
# No tests in archive
|
||||
doCheck = false;
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fonttools";
|
||||
version = "3.28.0";
|
||||
version = "3.29.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ebf2ee25a6060e8551880a3b05d6ecadcdcfbd1b32fc272ff7b3acdb22945b6f";
|
||||
sha256 = "aab38c8c131670684321437d4857dcb4de1c775efd152a9ca9c4d81f1cb97fe7";
|
||||
extension = "zip";
|
||||
};
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
, six
|
||||
, scipy
|
||||
, smart_open
|
||||
, scikitlearn, testfixtures, unittest2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -15,20 +16,20 @@ buildPythonPackage rec {
|
||||
sha256 = "78ed9b6ac35f104542f3bee0386d71ddf9432d74c153065d2ea9f6baf10e5b49";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ smart_open numpy six scipy
|
||||
# scikitlearn testfixtures unittest2 # for tests
|
||||
];
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [ smart_open numpy six scipy ];
|
||||
|
||||
checkInputs = [ scikitlearn testfixtures unittest2 ];
|
||||
|
||||
# Two tests fail.
|
||||
|
||||
#
|
||||
# ERROR: testAddMorphemesToEmbeddings (gensim.test.test_varembed_wrapper.TestVarembed)
|
||||
# ImportError: Could not import morfessor.
|
||||
# This package is not in nix
|
||||
|
||||
#
|
||||
# ERROR: testWmdistance (gensim.test.test_fasttext_wrapper.TestFastText)
|
||||
# ImportError: Please install pyemd Python package to compute WMD.
|
||||
# This package is not in nix
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Topic-modelling library";
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gevent";
|
||||
version = "1.3.5";
|
||||
version = "1.3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7f15861f3cc92f49663ca88c4774d26d8044783a65fbc28071a2bd1c7bf36ff0";
|
||||
sha256 = "7b413c391e8ad6607b7f7540d698a94349abd64e4935184c595f7cdcc69904c6";
|
||||
};
|
||||
|
||||
buildInputs = [ libev ];
|
||||
|
||||
@@ -22,13 +22,30 @@ buildPythonPackage rec {
|
||||
--replace "'git-annex'" "'${git-annex}/bin/git-annex'"
|
||||
'';
|
||||
|
||||
# TODO: Remove for next version
|
||||
patches = [
|
||||
# fixes the "not-a-git-repo" testcase where recent git versions expect a slightly different error.
|
||||
./not-a-git-repo-testcase.patch
|
||||
|
||||
# fixes the testcase which parses the output of `git-annex info` where several
|
||||
# new lines are displayed that broke the test.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/Ma27/git-annex-adapter/commit/39cb6da69c1aec3d57ea9f68c2dea5113ae1b764.patch";
|
||||
sha256 = "0wyy2icqan3jpiw7dm50arfq3mgq4b5s3g91k82srap763r9hg5m";
|
||||
})
|
||||
|
||||
# fixes the testcase which runs "git status" and complies with the
|
||||
# slightly altered output.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/alpernebbi/git-annex-adapter/commit/9f64c4b99cae7b681820c6c7382e1e40489f4d1e.patch";
|
||||
sha256 = "0yh66gial6bx7kbl7s7lkzljnkpgvgr8yahqqcq9z76d0w752dir";
|
||||
})
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||
# `rev` is part of utillinux on NixOS which is not available on `nixpks` for darwin:
|
||||
# https://logs.nix.ci/?key=nixos/nixpkgs.45061&attempt_id=271763ba-2ae7-4098-b469-b82b1d8edb9b
|
||||
(fetchpatch {
|
||||
url = "https://github.com/alpernebbi/git-annex-adapter/commit/0b60b4577528b309f6ac9d47b55a00dbda9850ea.patch";
|
||||
sha256 = "0z608hpmyzv1mm01dxr7d6bi1hc77h4yafghkynmv99ijgnm1qk7";
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-api-core";
|
||||
version = "1.2.1";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e24e391054ed6e925ff6d03f225d9f66f3da97d0ab6f61e59274fb918fbe3ef1";
|
||||
sha256 = "ac85fc7f6687bb0271f2f70ca298da90f35789f9de1fe3a11e8caeb571332b77";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-auth";
|
||||
version = "1.5.0";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1745c9066f698eac3da99cef082914495fb71bc09597ba7626efbbb64c4acc57";
|
||||
sha256 = "9ca363facbf2622d9ba828017536ccca2e0f58bd15e659b52f312172f8815530";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest mock oauth2client flask requests urllib3 pytest-localserver ];
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gphoto2";
|
||||
version = "1.8.2";
|
||||
version = "1.8.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1806bdjc18qh0wyayxymgjnqqqlxs2iwvgk594anxw9y69hrxqni";
|
||||
sha256 = "0257f90f0d8342b8bc996ff1b45b2cd3219a29f8123aa21a6da159ee3566e49f";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "grpcio-tools";
|
||||
version = "1.13.0";
|
||||
version = "1.14.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1ck6818kb4nb6skm9lqg492brqs7kfk65f4hh2c7h7c8pkbrpcw1";
|
||||
sha256 = "4ce5aa660d7884f23aac1eafa93b97a4c3e2b512edff871e91fdb6ee86ebd5ea";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -1,19 +1,24 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, lib
|
||||
, six, protobuf, enum34, futures, isPy27, isPy34 }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, lib, darwin
|
||||
, six, protobuf, enum34, futures, isPy27, isPy34, pkgconfig }:
|
||||
|
||||
with stdenv.lib;
|
||||
buildPythonPackage rec {
|
||||
pname = "grpcio";
|
||||
version = "1.13.0";
|
||||
version = "1.14.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6324581e215157f0fbe335dff2e21a65b4406db98ac7cca05f1e23b4f510b426";
|
||||
sha256 = "4bf23666e763ca7ff6010465864e9f088f4ac7ecc1e11abd6f85b250e66b2c05";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ] ++ optional stdenv.isDarwin darwin.cctools;
|
||||
|
||||
propagatedBuildInputs = [ six protobuf ]
|
||||
++ lib.optionals (isPy27 || isPy34) [ enum34 ]
|
||||
++ lib.optionals (isPy27) [ futures ];
|
||||
|
||||
preBuild = optionalString stdenv.isDarwin "unset AR";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "HTTP/2-based RPC framework";
|
||||
license = lib.licenses.asl20;
|
||||
|
||||
@@ -37,6 +37,9 @@ in buildPythonPackage rec {
|
||||
propagatedBuildInputs = [ numpy six]
|
||||
++ optionals mpiSupport [ mpi4py openssh ];
|
||||
|
||||
# https://github.com/h5py/h5py/issues/1088
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description =
|
||||
"Pythonic interface to the HDF5 binary data format";
|
||||
|
||||
32
pkgs/development/python-modules/httpsig/default.nix
Normal file
32
pkgs/development/python-modules/httpsig/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools_scm
|
||||
, pycryptodome
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httpsig";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "19ng7y7blp13z081z5a6dxng1p8xlih7g6frmsg3q5ri8lvpybc7";
|
||||
};
|
||||
|
||||
buildInputs = [ setuptools_scm ];
|
||||
propagatedBuildInputs = [ pycryptodome requests ];
|
||||
|
||||
# Jailbreak pycryptodome
|
||||
preBuild = ''
|
||||
substituteInPlace setup.py --replace "==3.4.7" ""
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Sign HTTP requests with secure signatures";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ srhb ];
|
||||
homepage = https://github.com/ahknight/httpsig;
|
||||
};
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hvac";
|
||||
version = "0.6.2";
|
||||
version = "0.6.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "4bc80744df5f09882b1cc91755b03b7b62b093fc63c8c4abb26fbfb9c9e878dd";
|
||||
sha256 = "54672a93f75453a7de13c7c10c6d8a51630e2559a8e2a563d8e272e9e188443f";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "IBMQuantumExperience";
|
||||
version = "1.9.8";
|
||||
version = "2.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "78a7d9770fa2884d79d3c8b18f374644866e4d22ec151cf703053f7530bb7b7c";
|
||||
sha256 = "f2a5662d7457c297af0751985979e64a88569beb07cfedad0ce1dfa5a7237842";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
15
pkgs/development/python-modules/inflect/default.nix
Normal file
15
pkgs/development/python-modules/inflect/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ buildPythonPackage, fetchPypi, setuptools_scm, nose, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "inflect";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ll34l5b2wsbcw9i2hvkhmq6szxrp7fzc2hjmpz1cvny81bhg3kx";
|
||||
};
|
||||
|
||||
buildInputs = [ setuptools_scm ];
|
||||
checkInputs = [ nose ];
|
||||
propagatedBuildInputs = [ six ];
|
||||
}
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "invoke";
|
||||
version = "1.1.0";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0aiy1xvk1f91246zxd1zqrm679vdvd10h843a2na41cqr3cflpi6";
|
||||
sha256 = "1c2cf54c9b9af973ad9704d8ba81b225117cab612568cacbfb3fc42958cc20a9";
|
||||
};
|
||||
|
||||
# errors with vendored libs
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ipython";
|
||||
version = "6.4.0";
|
||||
version = "6.5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "eca537aa61592aca2fef4adea12af8e42f5c335004dfa80c78caf80e8b525e5c";
|
||||
sha256 = "b0f2ef9eada4a68ef63ee10b6dde4f35c840035c50fd24265f8052c98947d5a4";
|
||||
};
|
||||
|
||||
prePatch = lib.optionalString stdenv.isDarwin ''
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user