Merge branch 'master' into staging-next
Hydra nixpkgs: ?compare=1523575
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
buildPythonPackage rec {
|
||||
|
||||
pname = "XlsxWriter";
|
||||
version = "1.1.7";
|
||||
version = "1.1.8";
|
||||
|
||||
# PyPI release tarball doesn't contain tests so let's use GitHub. See:
|
||||
# https://github.com/jmcnamara/XlsxWriter/issues/327
|
||||
@@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||
owner = "jmcnamara";
|
||||
repo = pname;
|
||||
rev = "RELEASE_${version}";
|
||||
sha256 = "1zv5222bymfr7046ps5512x1kk7ipcx46jjxylaap1p6llqj7zlj";
|
||||
sha256 = "19qhdcycaiamd3bp8v2z9rpirxsr4c29fgs219k2766fpmfrgx40";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
31
pkgs/development/python-modules/apprise/default.nix
Normal file
31
pkgs/development/python-modules/apprise/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, Babel, decorator, requests, requests_oauthlib, oauthlib, urllib3, six, click, markdown, pyyaml
|
||||
, pytestrunner, coverage, flake8, mock, pytest, pytestcov, tox
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "apprise";
|
||||
version = "0.7.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c3c7922f7b80107620f541a6c16435485e7045771b3ecfb998deacee0eb90753";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ Babel ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
decorator requests requests_oauthlib oauthlib urllib3 six click markdown pyyaml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestrunner coverage flake8 mock pytest pytestcov tox
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/caronc/apprise";
|
||||
description = "Push Notifications that work with just about every platform!";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "avro";
|
||||
version = "1.8.2";
|
||||
version = "1.9.0";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8f9ee40830b70b5fb52a419711c9c4ad0336443a6fba7335060805f961b04b59";
|
||||
sha256 = "0af72fcql34v30cvjqm9nmz68rl35znn5qbd4k3b9ks02xzy3b2y";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "awkward";
|
||||
version = "0.9.0";
|
||||
version = "0.10.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "140fdncibnlpdqr6hk8lhgkv7m2v8786rips5qp92r05agfzbhs0";
|
||||
sha256 = "0vq27db5k8cc5jpbdrl531gjhig0f9iy0i7z6ks81lz1a2mkvjik";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "braintree";
|
||||
version = "3.53.0";
|
||||
version = "3.54.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "026apwkjn83la7jm0azz3qajg26nza3gh49zd37j0rsp6cgmfa24";
|
||||
sha256 = "09dbj04r55hnm8zvfz8wbnxkxb1pfy7g43pzcgs4hhh5xh45ppfd";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bugwarrior";
|
||||
version = "1.6.0";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "cfa4fac19b4f4638928347b8fe192315f72813c3e8ed668867e5891338c7e4ec";
|
||||
sha256 = "1pmznka5dxcdjfak0p1yh7lhfbfazmx8g9ysv57lsrkqy4n61qks";
|
||||
};
|
||||
|
||||
buildInputs = [ mock unittest2 nose /* jira megaplan */ ];
|
||||
|
||||
40
pkgs/development/python-modules/datatable/default.nix
Normal file
40
pkgs/development/python-modules/datatable/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, llvm
|
||||
, typesentry
|
||||
, blessed
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "datatable";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1s8z81zffrckvdwrrl0pkjc7gsdvjxw59xgg6ck81dl7gkh5grjk";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
propagatedBuildInputs = [ typesentry blessed ];
|
||||
buildInputs = [ llvm ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
LLVM = llvm;
|
||||
|
||||
checkPhase = ''
|
||||
# py.test adds local datatable to path, which doesn't contain built native library.
|
||||
mv datatable datatable.hidden
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "data.table for Python";
|
||||
homepage = "https://github.com/h2oai/datatable";
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
@@ -28,12 +28,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "distributed";
|
||||
version = "1.27.1";
|
||||
version = "1.28.1";
|
||||
|
||||
# get full repository need conftest.py to run tests
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "117q16ha03m8y9ydxg5svwx2cv1r2703hcy4a0zgjh5nhx4rfhiy";
|
||||
sha256 = "12n487qn66jkgq4nd3vgyc9hfqw4i7zwr4dyybsqm4xmgs5kzn1v";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytest-repeat pytest-faulthandler pytest-timeout mock joblib ];
|
||||
|
||||
@@ -4,30 +4,30 @@
|
||||
, six
|
||||
, monotonic
|
||||
, testtools
|
||||
, python
|
||||
, isPy3k
|
||||
, nose
|
||||
, futures
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fasteners";
|
||||
version = "0.14.1";
|
||||
version = "0.15";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "063y20kx01ihbz2mziapmjxi2cd0dq48jzg587xdsdp07xvpcz22";
|
||||
sha256 = "3a176da6b70df9bb88498e1a18a9e4a8579ed5b9141207762368a1017bf8f5ef";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six monotonic testtools ];
|
||||
propagatedBuildInputs = [ six monotonic ];
|
||||
|
||||
checkInputs = [ testtools nose ] ++ stdenv.lib.optionals (!isPy3k) [ futures ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
nosetests
|
||||
'';
|
||||
|
||||
# Tests are written for Python 3.x only (concurrent.futures)
|
||||
doCheck = isPy3k;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Fasteners";
|
||||
description = "A python package that provides useful locks";
|
||||
homepage = https://github.com/harlowja/fasteners;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
27
pkgs/development/python-modules/flask-swagger/default.nix
Normal file
27
pkgs/development/python-modules/flask-swagger/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, flask, pyyaml }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.2.14";
|
||||
pname = "flask-swagger";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b4085f5bc36df4c20b6548cd1413adc9cf35719b0f0695367cd542065145294d";
|
||||
};
|
||||
|
||||
# No Tests
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
flask
|
||||
pyyaml
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/gangverk/flask-swagger";
|
||||
license = licenses.mit;
|
||||
description = "Extract swagger specs from your flask project";
|
||||
maintainers = with maintainers; [ vanschelven ];
|
||||
};
|
||||
}
|
||||
@@ -5,12 +5,12 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.6.2";
|
||||
version = "1.7.0";
|
||||
pname = "gsd";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "58a6669f2375936810d74c3ee7e62c5616acf9e15aa32603701e55ab6fada5f5";
|
||||
sha256 = "0fpk69wachyydpk9cbs901m7hkwrrvq24ykxsrz62km9ql8lr2vp";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "h11";
|
||||
version = "0.8.1";
|
||||
version = "0.9.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "acca6a44cb52a32ab442b1779adf0875c443c689e9e028f8d831a3769f9c5208";
|
||||
sha256 = "1qfad70h59hya21vrzz8dqyyaiqhac0anl2dx3s3k80gpskvrm1k";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
{ lib, fetchurl, buildPythonPackage, numpy, scikitlearn }:
|
||||
{ lib, fetchurl, buildPythonPackage, numpy, scikitlearn, setuptools_scm, cython, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hmmlearn";
|
||||
version = "0.2.1";
|
||||
version = "0.2.2";
|
||||
name = pname + "-" + version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/h/hmmlearn/${name}.tar.gz";
|
||||
sha256 = "d43f5b25f9019ef5d01914d0972a5fa0594e82ab75d2c6aec26d682e47bd553c";
|
||||
sha256 = "081c53xs5wn5vikwslallwdv0am09w9cbbggl5dbkqpnic9zx4h4";
|
||||
};
|
||||
|
||||
buildInputs = [ setuptools_scm cython ];
|
||||
propagatedBuildInputs = [ numpy scikitlearn ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
pytest --doctest-modules --pyargs hmmlearn
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Hidden Markov Models in Python with scikit-learn like API";
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nibabel";
|
||||
version = "2.3.3";
|
||||
version = "2.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b6366634c65b04464e62f3a9a8df1faa172f780ed7f1af1c6818b3dc2f1202c3";
|
||||
sha256 = "f165ff1cb4464902d6594eb2694e2cfb6f8b9fe233b856c976c3cff623ee0e17";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -13,13 +13,13 @@ let
|
||||
# Therefore we create a separate env for it.
|
||||
scons = pkgs.python27.withPackages(ps: [ pkgs.scons ]);
|
||||
in buildPythonPackage rec {
|
||||
version = "0.6.3";
|
||||
version = "0.6.3.1";
|
||||
pname = "Nuitka";
|
||||
|
||||
# Latest version is not yet on PyPi
|
||||
src = fetchurl {
|
||||
url = "https://github.com/kayhayen/Nuitka/archive/${version}.tar.gz";
|
||||
sha256 = "0nzk6r724dyai33fi7xmc6jn57pkcwqm553vlv0r11blvc92d7pp";
|
||||
sha256 = "0h05krv871ymz55k6lrdlfyqndck6lwyy69dk5v4sakgfd5iawqf";
|
||||
};
|
||||
|
||||
checkInputs = [ vmprof pyqt4 ];
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.16";
|
||||
version = "1.23";
|
||||
pname = "numericalunits";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "71ae8e236c7a223bccefffb670dca68be476dd63b7b9009641fc64099455da25";
|
||||
sha256 = "1q1jrzxx0k7j82c5q061hd10mp965ra8813vb09ji326fbxzn2gy";
|
||||
};
|
||||
|
||||
# no tests
|
||||
|
||||
@@ -3,31 +3,31 @@
|
||||
, fetchPypi
|
||||
, requests
|
||||
, python
|
||||
, fetchpatch
|
||||
|
||||
# For tests/setup.py
|
||||
, pytest
|
||||
, pytestrunner
|
||||
, requests-mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "packet-python";
|
||||
version = "1.37.1";
|
||||
version = "1.38.2";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "316941d2473c0f42ac17ac89e9aa63a023bb96f35cf8eafe9e091ea424892778";
|
||||
sha256 = "1lh97la51fa3nxjl4ngsanrxw6qq5jwwn0dxj2f0946m043200xl";
|
||||
};
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover -s test
|
||||
'';
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = https://github.com/packethost/packet-python/commit/361ad0c60d0bfce2a992eefd17e917f9dcf36400.patch;
|
||||
sha256 = "1cmzyq0302y4cqmim6arnvn8n620qysq458g2w5aq4zj1vz1q9g1";
|
||||
})
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestrunner
|
||||
requests-mock
|
||||
];
|
||||
|
||||
# Not all test files are included in archive
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
${python.interpreter} setup.py test
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A Python client for the Packet API.";
|
||||
@@ -35,4 +35,4 @@ buildPythonPackage rec {
|
||||
license = lib.licenses.lgpl3;
|
||||
maintainers = with lib.maintainers; [ dipinhora ];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
36
pkgs/development/python-modules/pglast/default.nix
Normal file
36
pkgs/development/python-modules/pglast/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, pythonOlder
|
||||
, aenum
|
||||
, pytest
|
||||
, pytestcov
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pglast";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1442ae2cfc6427e9a8fcc2dc18d9ecfcaa1b16eba237fdcf0b2b13912eab9a86";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.6") [ aenum ];
|
||||
|
||||
checkInputs = [ pytest pytestcov ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/lelit/pglast";
|
||||
description = "PostgreSQL Languages AST and statements prettifier";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "PyChromecast";
|
||||
version = "3.2.1";
|
||||
version = "3.2.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e1e71e30581e1021b6bdd50a80cfcdcfa86d9082171fdd719c5ca6a77b8a9699";
|
||||
sha256 = "17l7nlnpqjgnrw4hzs52lbzmdxa1vm3v51mm33l4c43c1md5m2ns";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
@@ -13,10 +13,10 @@ buildPythonPackage rec {
|
||||
sha256 = "fc31cda72ace001da8fe5d42f11c26e514a91fa8c70468739216ddd8de64e2a0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pkgs.enchant ];
|
||||
propagatedBuildInputs = [ pkgs.enchant1 ];
|
||||
|
||||
patchPhase = let
|
||||
path_hack_script = "s|LoadLibrary(e_path)|LoadLibrary('${pkgs.enchant}/lib/' + e_path)|";
|
||||
path_hack_script = "s|LoadLibrary(e_path)|LoadLibrary('${pkgs.enchant1}/lib/' + e_path)|";
|
||||
in ''
|
||||
sed -i "${path_hack_script}" enchant/_enchant.py
|
||||
|
||||
@@ -31,6 +31,7 @@ buildPythonPackage rec {
|
||||
description = "pyenchant: Python bindings for the Enchant spellchecker";
|
||||
homepage = https://pythonhosted.org/pyenchant/;
|
||||
license = licenses.lgpl21;
|
||||
badPlatforms = [ "x86_64-darwin" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, lib, buildPythonPackage, fetchPypi, python, pythonOlder, astroid,
|
||||
isort, mccabe, pytest, pytestrunner, pyenchant }:
|
||||
isort, mccabe, pytest, pytestrunner }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylint";
|
||||
@@ -14,7 +14,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
|
||||
checkInputs = [ pytest pyenchant ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
propagatedBuildInputs = [ astroid isort mccabe ];
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-tornado";
|
||||
version = "0.7.0";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0jv7jhq6ddhsmnz67vc76r4kwac9k5a142968zppyw9av6qalbl4";
|
||||
sha256 = "0ncaq7icijls6qh66kv19w3i9av2wnmaycfr4yadyybajr8yvffz";
|
||||
};
|
||||
|
||||
# package has no tests
|
||||
|
||||
@@ -1,14 +1,19 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, isPy3k }:
|
||||
{ lib, fetchPypi, buildPythonPackage, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.10";
|
||||
version = "1.11";
|
||||
pname = "python-stdnum";
|
||||
# Failing tests and dependency issue on Py3k
|
||||
disabled = isPy3k;
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0prs63q8zdgwr5cxc5a43zvsm66l0gf9jk19qdf85m6isnp5186a";
|
||||
sha256 = "d5f0af1bee9ddd9a20b398b46ce062dbd4d41fcc9646940f2667256a44df3854";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://arthurdejong.org/python-stdnum/;
|
||||
description = "Python module to handle standardized numbers and codes";
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rpyc";
|
||||
version = "4.0.2";
|
||||
version = "4.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a0d87cbad152f25e3702a03cb7fd67f6b10c87680a60ec3aea8dca5a56307c10";
|
||||
sha256 = "1pz90h21f74n8i3cx5ndxm4r3rismkx5qbw1c0cmfci9a3009rq5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ nose plumbum ];
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
||||
, unittest2, mock, requests, simplejson }:
|
||||
{ lib, buildPythonPackage, fetchPypi, requests, toml, pytest, pytestcov, pytest-mock, pytest_xdist }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "stripe";
|
||||
version = "2.27.0";
|
||||
version = "2.29.3";
|
||||
|
||||
# Tests require network connectivity and there's no easy way to disable
|
||||
# them. ~ C.
|
||||
@@ -11,12 +10,16 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0pvypngbmiji92nfs28bmiyl7brsm6cj18d9vhnwyydnzn3nlkl1";
|
||||
sha256 = "73f9af72ef8125e0d1c713177d006f1cbe95602beb3e10cb0b0a4ae358d1ae86";
|
||||
};
|
||||
|
||||
checkInputs = [ unittest2 mock ];
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "toml>=0.9,<0.10" "toml>=0.9"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ requests ] ++ lib.optional (!isPy3k) simplejson;
|
||||
propagatedBuildInputs = [ toml requests ];
|
||||
|
||||
checkInputs = [ pytest pytestcov pytest-mock pytest_xdist ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Stripe Python bindings";
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "twilio";
|
||||
version = "6.26.2";
|
||||
version = "6.27.1";
|
||||
# tests not included in PyPi, so fetch from github instead
|
||||
src = fetchFromGitHub {
|
||||
owner = "twilio";
|
||||
repo = "twilio-python";
|
||||
rev = version;
|
||||
sha256 = "0z0ahbckh5calwgkmd493znixclhjjrly8jfymhwlw6g0g79kavw";
|
||||
sha256 = "1yd4cpl4y01d3a956gsdg13vx02rb176wyh7mzr0aznkp38nyw5w";
|
||||
};
|
||||
|
||||
buildInputs = [ nose mock ];
|
||||
|
||||
33
pkgs/development/python-modules/typesentry/default.nix
Normal file
33
pkgs/development/python-modules/typesentry/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, colorama
|
||||
, pytest
|
||||
, pytestcov
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "typesentry";
|
||||
version = "0.2.7";
|
||||
|
||||
# Only wheel distribution is available on PyPi.
|
||||
src = fetchFromGitHub {
|
||||
owner = "h2oai";
|
||||
repo = "typesentry";
|
||||
rev = "0ca8ed0e62d15ffe430545e7648c9a9b2547b49c";
|
||||
sha256 = "0z615f9dxaab3bay3v27j7q99qm6l6q8xv872yvsp87sxj7apfki";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ colorama ];
|
||||
checkInputs = [ pytest pytestcov ];
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python 2.7 & 3.5+ runtime type-checker";
|
||||
homepage = "https://github.com/h2oai/typesentry";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "uncertainties";
|
||||
version = "3.0.3";
|
||||
version = "3.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1hp00k10d5n69s446flss8b4rd02wq8dscvakv7ylfyf2p8y564s";
|
||||
sha256 = "18b184110cbe31303d25a7bc7f73d51b9cb4e15563cb9aa25ccfbd0ebe07d448";
|
||||
};
|
||||
|
||||
buildInputs = [ nose numpy ];
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, pytest
|
||||
, nose
|
||||
, scipy
|
||||
, scikitlearn
|
||||
, xgboost
|
||||
, substituteAll
|
||||
, pandas
|
||||
, matplotlib
|
||||
, graphviz
|
||||
, datatable
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -21,7 +27,7 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ scipy ];
|
||||
buildInputs = [ xgboost ];
|
||||
checkInputs = [ nose ];
|
||||
checkInputs = [ nose pytest scikitlearn pandas matplotlib graphviz datatable ];
|
||||
|
||||
checkPhase = ''
|
||||
ln -sf ../demo .
|
||||
|
||||
@@ -1,24 +1,3 @@
|
||||
diff --git a/python-package/setup.py b/python-package/setup.py
|
||||
index e6c3386f..4ed0a8bd 100644
|
||||
--- a/python-package/setup.py
|
||||
+++ b/python-package/setup.py
|
||||
@@ -16,8 +16,6 @@ libpath_py = os.path.join(CURRENT_DIR, 'xgboost/libpath.py')
|
||||
libpath = {'__file__': libpath_py}
|
||||
exec(compile(open(libpath_py, "rb").read(), libpath_py, 'exec'), libpath, libpath)
|
||||
|
||||
-LIB_PATH = [os.path.relpath(libfile, CURRENT_DIR) for libfile in libpath['find_lib_path']()]
|
||||
-print("Install libxgboost from: %s" % LIB_PATH)
|
||||
# Please use setup_pip.py for generating and deploying pip installation
|
||||
# detailed instruction in setup_pip.py
|
||||
setup(name='xgboost',
|
||||
@@ -35,7 +33,6 @@ setup(name='xgboost',
|
||||
# this will use MANIFEST.in during install where we specify additional files,
|
||||
# this is the golden line
|
||||
include_package_data=True,
|
||||
- data_files=[('xgboost', LIB_PATH)],
|
||||
license='Apache-2.0',
|
||||
classifiers=['License :: OSI Approved :: Apache Software License'],
|
||||
url='https://github.com/dmlc/xgboost')
|
||||
diff --git a/python-package/xgboost/libpath.py b/python-package/xgboost/libpath.py
|
||||
index d87922c0..859a30fb 100644
|
||||
--- a/python-package/xgboost/libpath.py
|
||||
|
||||
Reference in New Issue
Block a user