Merge master into staging
This commit is contained in:
25
pkgs/development/python-modules/base58/default.nix
Normal file
25
pkgs/development/python-modules/base58/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest, pyhamcrest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "base58";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "keis";
|
||||
repo = "base58";
|
||||
rev = "v${version}";
|
||||
sha256 = "0f8isdpvbgw0sqn9bj7hk47y8akpvdl8sn6rkszla0xb92ywj0f6";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest pyhamcrest ];
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Base58 and Base58Check implementation";
|
||||
homepage = https://github.com/keis/base58;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
};
|
||||
}
|
||||
30
pkgs/development/python-modules/block-io/default.nix
Normal file
30
pkgs/development/python-modules/block-io/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv, fetchPypi, fetchpatch, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "block-io";
|
||||
version = "1.1.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "15468pvpcp41ly7kjpmikpyi4av57d9zhf5j1v01j78r1xqqk56g";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
base58
|
||||
ecdsa
|
||||
pycryptodome
|
||||
requests
|
||||
six
|
||||
];
|
||||
|
||||
# Tests needs a BlockIO API key to run properly
|
||||
# https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io";
|
||||
homepage = https://github.com/BlockIo/block_io-python;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ buildPythonPackage, fetchPypi
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, iowait, psutil, pyzmq, tornado, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -10,7 +10,22 @@ buildPythonPackage rec {
|
||||
sha256 = "d1603cf4c4f620ce6593d3d2a67fad25bf0242183ea24110d8bb1c8079c55d1b";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# relax version restrictions to fix build
|
||||
substituteInPlace setup.py \
|
||||
--replace "pyzmq>=13.1.0,<17.0" "pyzmq>13.1.0" \
|
||||
--replace "tornado>=3.0,<5.0" "tornado>=3.0"
|
||||
'';
|
||||
|
||||
checkInputs = [ mock ];
|
||||
|
||||
doCheck = false; # weird error
|
||||
|
||||
propagatedBuildInputs = [ iowait psutil pyzmq tornado mock ];
|
||||
propagatedBuildInputs = [ iowait psutil pyzmq tornado ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A process and socket manager";
|
||||
homepage = "https://github.circus.com/circus-tent/circus";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, six }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, six, unittest2 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dependency-injector";
|
||||
version = "3.13.1";
|
||||
version = "3.13.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0bmcgdfjavgxdzkb904q968ig1x44arvpj2m4rpm5nc9vhhgq43q";
|
||||
sha256 = "0kgb40qspibr1x8ksv0whrr7v0jy20dnqzmc591hm2y4kwzl5hdw";
|
||||
};
|
||||
|
||||
# TODO: Enable tests after upstream merges https://github.com/ets-labs/python-dependency-injector/pull/204
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
checkInputs = [ unittest2 ];
|
||||
|
||||
checkPhase = ''
|
||||
unit2 discover tests/unit
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Dependency injection microframework for Python";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
let
|
||||
pname = "gst-python";
|
||||
version = "1.14.0";
|
||||
version = "1.14.2";
|
||||
name = "${pname}-${version}";
|
||||
in buildPythonPackage rec {
|
||||
inherit pname version;
|
||||
@@ -15,7 +15,7 @@ in buildPythonPackage rec {
|
||||
"${meta.homepage}/src/gst-python/${name}.tar.xz"
|
||||
"mirror://gentoo/distfiles/${name}.tar.xz"
|
||||
];
|
||||
sha256 = "1rlr6gl4lg97ng4jxh3gb2ldmywm15vwsa72nvggr8qa2l8q3fg0";
|
||||
sha256 = "08nb011acyvlz48fqh8c084k0dlssz9b7wha7zzk797inidbwh6w";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
@@ -14,7 +14,8 @@ buildPythonPackage rec {
|
||||
# disable some failing tests
|
||||
checkPhase = ''
|
||||
nosetests nilearn/tests \
|
||||
-e test_cache_mixin_with_expand_user -e test_clean_confounds -e test_detrend
|
||||
-e test_cache_mixin_with_expand_user -e test_clean_confounds -e test_detrend \
|
||||
-e test_clean_detrending -e test_high_variance_confounds
|
||||
'';
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysam";
|
||||
version = "0.13.0";
|
||||
version = "0.15.1";
|
||||
|
||||
# Fetching from GitHub instead of PyPi cause the 0.13 src release on PyPi is
|
||||
# missing some files which cause test failures.
|
||||
@@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||
owner = "pysam-developers";
|
||||
repo = "pysam";
|
||||
rev = "v${version}";
|
||||
sha256 = "1lwbcl38w1x0gciw5psjp87msmv9zzkgiqikg9b83dqaw2y5az1i";
|
||||
sha256 = "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x";
|
||||
};
|
||||
|
||||
buildInputs = [ bzip2 curl cython lzma zlib ];
|
||||
|
||||
25
pkgs/development/python-modules/python-binance/default.nix
Normal file
25
pkgs/development/python-modules/python-binance/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, pytest, requests-mock, tox
|
||||
, autobahn, certifi, chardet, cryptography, dateparser, pyopenssl, requests, service-identity, twisted }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.7.0";
|
||||
pname = "python-binance";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0h8kd88j53w6yfc60fr8a45zi30p09l98vm8yzqym4lcgx76nvps";
|
||||
};
|
||||
|
||||
doCheck = false; # Tries to test multiple interpreters with tox
|
||||
checkInputs = [ pytest requests-mock tox ];
|
||||
|
||||
propagatedBuildInputs = [ autobahn certifi chardet cryptography dateparser pyopenssl requests service-identity twisted ];
|
||||
|
||||
meta = {
|
||||
description = "Binance Exchange API python implementation for automated trading";
|
||||
homepage = https://github.com/sammchardy/python-binance;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.bhipple ];
|
||||
};
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
, stdenv
|
||||
, setuptools_scm
|
||||
, pytest
|
||||
, glibcLocales
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -16,6 +17,9 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
buildInputs = [ setuptools_scm ];
|
||||
nativeBuildInputs = [ glibcLocales ];
|
||||
|
||||
LC_ALL="en_US.utf-8";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg --replace " --cov" ""
|
||||
|
||||
Reference in New Issue
Block a user