Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2020-08-18 17:55:04 +02:00
113 changed files with 1560 additions and 703 deletions

View File

@@ -0,0 +1,45 @@
{ buildPythonPackage
, fetchPypi
, isPy27
, aiohttp
, pytest
, pytest-aiohttp
, pygments
, lib
}:
buildPythonPackage rec {
pname = "aiojobs";
version = "0.2.2";
format = "flit";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "01a0msjh4w58fd7jplmblh0hwgpzwjs5xkgqz3d0p5yv3cykwjwf";
};
nativeBuildInputs = [
pygments
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytest
pytest-aiohttp
];
checkPhase = ''
pytest tests
'';
meta = with lib; {
homepage = "https://github.com/aio-libs/aiojobs";
description = "Jobs scheduler for managing background task (asyncio)";
license = licenses.asl20;
maintainers = with maintainers; [ cmcdragonkai ];
};
}

View File

@@ -2,23 +2,28 @@
, buildPythonPackage
, fetchPypi
, azure-common
, azure-core
, azure-storage-common
, msrest
, isPy3k
, futures
}:
buildPythonPackage rec {
pname = "azure-storage-blob";
version = "2.1.0";
version = "12.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "b90323aad60f207f9f90a0c4cf94c10acc313c20b39403398dfba51f25f7b454";
extension = "zip";
sha256 = "1s03daq5mxh9acbv8qpa55c2wmjvdf8jq071cwv65mrly8prp84n";
};
propagatedBuildInputs = [
azure-common
azure-core
azure-storage-common
msrest
] ++ lib.optional (!isPy3k) futures;
# has no tests

View File

@@ -12,12 +12,13 @@
, cramfsprogs
, cramfsswap
, lzma
, matplotlib
, nose
, pycrypto
, pyqtgraph ? null }:
let
visualizationSupport = (pyqtgraph != null);
visualizationSupport = (pyqtgraph != null) && (matplotlib != null);
version = "2.2.0";
in
buildPythonPackage {
@@ -32,7 +33,7 @@ buildPythonPackage {
};
propagatedBuildInputs = [ zlib xz ncompress gzip bzip2 gnutar p7zip cabextract cramfsswap cramfsprogs lzma pycrypto ]
++ stdenv.lib.optional visualizationSupport pyqtgraph;
++ stdenv.lib.optionals visualizationSupport [ matplotlib pyqtgraph ];
# setup.py only installs version.py during install, not test
postPatch = ''

View File

@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "blis";
version = "0.4.1";
version = "0.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "d69257d317e86f34a7f230a2fd1f021fd2a1b944137f40d8cdbb23bd334cd0c4";
sha256 = "014771a0f753a64ef5610c5b3d4a090b263073bdd59b8ad0d872ce1e06e7315a";
};
nativeBuildInputs = [

View File

@@ -1,14 +1,15 @@
{ stdenv, buildPythonPackage, fetchPypi
, frozendict, simplejson, six
, frozendict, simplejson, six, isPy27
}:
buildPythonPackage rec {
pname = "canonicaljson";
version = "1.1.4";
version = "1.3.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "45bce530ff5fd0ca93703f71bfb66de740a894a3b5dd6122398c6d8f18539725";
sha256 = "0v2b72n28fi763xxv9vrf4qc61anl2ys9njy7hlm719fdaq3sxml";
};
propagatedBuildInputs = [

View File

@@ -60,6 +60,7 @@ buildPythonPackage rec {
"test_argwhere_str"
"test_count_nonzero_str"
"rolling_methods" # floating percision error ~0.1*10^8 small
"num_workers_config" # flaky
];
meta = {

View File

@@ -0,0 +1,56 @@
{ buildPythonPackage
, fetchFromGitHub
, lib
, isPy3k
, cython
, numpy
, toml
, pytest
}:
buildPythonPackage rec {
pname = "finalfusion";
version = "0.7.1";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "finalfusion";
repo = "finalfusion-python";
rev = version;
sha256 = "0pwzflamxqvpl1wcz0zbhhd6aa4xn18rmza6rggaic3ckidhyrh4";
};
nativeBuildInputs = [
cython
];
propagatedBuildInputs = [
numpy
toml
];
checkInputs = [
pytest
];
postPatch = ''
patchShebangs tests/integration
'';
checkPhase = ''
# Regular unit tests.
pytest
# Integration tests for command-line utilities.
PATH=$PATH:$out/bin tests/integration/all.sh
'';
meta = with lib; {
description = "Python module for using finalfusion, word2vec, and fastText word embeddings";
homepage = "https://github.com/finalfusion/finalfusion-python/";
maintainers = with maintainers; [ danieldk ];
platforms = platforms.all;
license = licenses.blueOak100;
};
}

View File

@@ -6,12 +6,12 @@
buildPythonPackage rec {
pname = "prawcore";
version = "1.4.0";
version = "1.5.0";
disabled = isPy27; # see https://github.com/praw-dev/prawcore/pull/101
src = fetchPypi {
inherit pname version;
sha256 = "cf71388d869becbcbdfd90258b19d2173c197a457f2dd0bef0566b6cfb9b95a1";
sha256 = "1f1eafc8a65d671f9892354f73142014fbb5d3a9ee621568c662d0a354e0578b";
};
propagatedBuildInputs = [

View File

@@ -6,18 +6,23 @@
# pythonPackages
, django
, pylint-plugin-utils
# pythonPackages for checkInputs
, coverage
, factory_boy
, pytest
}:
buildPythonPackage rec {
pname = "pylint-django";
version = "2.1.0";
version = "2.3.0";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "PyCQA";
repo = pname;
rev = "v${version}";
sha256 = "1gvbh2a480x3ddrq6xzray7kdsz8nb8n16xm2lf03w2nqnsdbkwy";
sha256 = "1088waraiigi2bnlighn7bvnvqmpx5fbw70c8jd8sh25mj38wgly";
};
propagatedBuildInputs = [
@@ -25,8 +30,14 @@ buildPythonPackage rec {
pylint-plugin-utils
];
# Testing requires checkout from other repositories
doCheck = false;
checkInputs = [ coverage factory_boy pytest ];
# Check command taken from scripts/test.sh
# Skip test external_django_tables2_noerror_meta_class:
# requires an unpackaged django_tables2
checkPhase = ''
python pylint_django/tests/test_func.py -v -k "not tables2"
'';
meta = with lib; {
description = "A Pylint plugin to analyze Django applications";

View File

@@ -17,6 +17,6 @@ buildPythonPackage rec {
description = "Reference implementation of SLIP-0039";
homepage = "https://github.com/trezor/python-shamir-mnemonic";
license = licenses.mit;
maintainers = with maintainers; [ maintainers."1000101" ];
maintainers = with maintainers; [ _1000101 ];
};
}

View File

@@ -55,6 +55,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.cfg \
--replace "blis>=0.4.0,<0.5.0" "blis>=0.4.0,<1.0" \
--replace "catalogue>=0.0.7,<1.1.0" "catalogue>=0.0.7,<3.0" \
--replace "plac>=0.9.6,<1.2.0" "plac>=0.9.6,<2.0" \
--replace "srsly>=1.0.2,<1.1.0" "srsly>=1.0.2,<3.0" \

View File

@@ -60,6 +60,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "blis>=0.4.0,<0.5.0" "blis>=0.4.0,<1.0" \
--replace "catalogue>=0.0.7,<1.1.0" "catalogue>=0.0.7,<3.0" \
--replace "plac>=0.9.6,<1.2.0" "plac>=0.9.6,<2.0" \
--replace "srsly>=0.0.6,<1.1.0" "srsly>=0.0.6,<3.0"

View File

@@ -55,6 +55,6 @@ buildPythonPackage rec {
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
homepage = "https://github.com/trezor/trezor-firmware/tree/master/python";
license = licenses.gpl3;
maintainers = with maintainers; [ np prusnak mmahut maintainers."1000101" ];
maintainers = with maintainers; [ np prusnak mmahut _1000101 ];
};
}