Merge branch 'master' into staging-next

This commit is contained in:
Jan Tojnar
2020-02-28 11:30:44 +01:00
103 changed files with 1336 additions and 724 deletions
@@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, configobj
, six
, fastimport
, dulwich
, launchpadlib
, testtools
}:
buildPythonPackage rec {
pname = "breezy";
version = "3.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "50f16bc7faf299f98fe58573da55b0664078f94b1a0e7f0ce9e1e6a0d47e68e0";
};
propagatedBuildInputs = [ configobj six fastimport dulwich launchpadlib ];
checkInputs = [ testtools ];
# There is a conflict with their `lazy_import` and plugin tests
doCheck = false;
# symlink for bazaar compatibility
postInstall = ''
ln -s "$out/bin/brz" "$out/bin/bzr"
'';
pythonImportsCheck = [ "breezy" ];
meta = with lib; {
description = "Friendly distributed version control system";
homepage = "https://www.breezy-vcs.org/";
license = licenses.gpl2;
maintainers = [ maintainers.marsam ];
};
}
@@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, mock
, pytorch
, pynvml
, scikitlearn
, tqdm
}:
buildPythonPackage rec {
pname = "ignite";
version = "0.2.1";
src = fetchFromGitHub {
owner = "pytorch";
repo = pname;
rev = "v${version}";
sha256 = "15k6dd11yxn4923llcpmw4srl1by5ljhh7aw5pnkn4n4qpywh6cm";
};
checkInputs = [ pytest mock ];
checkPhase = ''
pytest -k 'not visdom and not tensorboard and not mlflow and not polyaxon' tests/
'';
# these packages are not currently in nixpkgs
propagatedBuildInputs = [ pytorch scikitlearn tqdm pynvml ];
meta = with lib; {
description = "High-level training library for PyTorch";
homepage = https://pytorch.org/ignite;
license = licenses.bsd3;
maintainers = [ maintainers.bcdarwin ];
};
}
@@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, httplib2
, keyring
, lazr-restfulclient
, lazr-uri
, setuptools
, six
, testresources
, wadllib
}:
buildPythonPackage rec {
pname = "launchpadlib";
version = "1.10.10";
src = fetchPypi {
inherit pname version;
sha256 = "740580d72611452804ad7735c9af6944ed4a14fc1a2fcbcddba3fc719b5317f3";
};
propagatedBuildInputs = [
httplib2
keyring
lazr-restfulclient
lazr-uri
setuptools
six
testresources
wadllib
];
preCheck = ''
export HOME=$TMPDIR
'';
doCheck = isPy3k;
meta = with lib; {
description = "Script Launchpad through its web services interfaces. Officially supported";
homepage = "https://help.launchpad.net/API/launchpadlib";
license = licenses.lgpl3;
maintainers = [ maintainers.marsam ];
};
}
@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, distro
, httplib2
, oauthlib
, setuptools
, six
, wadllib
}:
buildPythonPackage rec {
pname = "lazr.restfulclient";
version = "0.14.3";
disabled = isPy27; # namespace is broken for python2
src = fetchPypi {
inherit pname version;
sha256 = "9f28bbb7c00374159376bd4ce36b4dacde7c6b86a0af625aa5e3ae214651a690";
};
propagatedBuildInputs = [ distro httplib2 oauthlib setuptools six wadllib ];
doCheck = false; # requires to package lazr.restful, lazr.authentication, and wsgi_intercept
pythonImportsCheck = [ "lazr.restfulclient" ];
meta = with lib; {
description = "A programmable client library that takes advantage of the commonalities among";
homepage = "https://launchpad.net/lazr.restfulclient";
license = licenses.lgpl3;
maintainers = [ maintainers.marsam ];
};
}
@@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, setuptools
}:
buildPythonPackage rec {
pname = "lazr.uri";
version = "1.0.3";
disabled = isPy27; # namespace is broken for python2
src = fetchPypi {
inherit pname version;
sha256 = "5c620b5993c8c6a73084176bfc51de64972b8373620476ed841931a49752dc8b";
};
propagatedBuildInputs = [ setuptools ];
meta = with lib; {
description = "A self-contained, easily reusable library for parsing, manipulating";
homepage = "https://launchpad.net/lazr.uri";
license = licenses.lgpl3;
maintainers = [ maintainers.marsam ];
};
}
@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, python
, fetchPypi
, pytest
, cython
, numpy
, scipy
, matplotlib
, networkx
, nibabel
}:
buildPythonPackage rec {
pname = "nitime";
version = "0.8.1";
disabled = python.pythonVersion != "3.7"; # gcc error when running Cython with Python 3.8
src = fetchPypi {
inherit pname version;
sha256 = "0hb3x5196z2zaawb8s7lhja0vd3n983ncaynqfl9qg315x9ax7i6";
};
checkInputs = [ pytest ];
buildInputs = [ cython ];
propagatedBuildInputs = [ numpy scipy matplotlib networkx nibabel ];
checkPhase = "pytest nitime/tests";
meta = with lib; {
homepage = https://nipy.org/nitime;
description = "Algorithms and containers for time-series analysis in time and spectral domains";
license = licenses.bsd3;
maintainers = [ maintainers.bcdarwin ];
};
}
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, python, isPy3k, arrow-cpp, cmake, cython, futures, hypothesis, numpy, pandas, pytest, pkgconfig, setuptools_scm, six }:
{ lib, buildPythonPackage, python, isPy3k, arrow-cpp, cmake, cython, futures, hypothesis, numpy, pandas, pytest, pytest-lazy-fixture, pkgconfig, setuptools_scm, six }:
let
_arrow-cpp = arrow-cpp.override { inherit python; };
@@ -13,7 +13,7 @@ buildPythonPackage rec {
nativeBuildInputs = [ cmake cython pkgconfig setuptools_scm ];
propagatedBuildInputs = [ numpy six ] ++ lib.optionals (!isPy3k) [ futures ];
checkInputs = [ hypothesis pandas pytest ];
checkInputs = [ hypothesis pandas pytest pytest-lazy-fixture ];
PYARROW_BUILD_TYPE = "release";
PYARROW_WITH_PARQUET = true;
@@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, cudatoolkit
}:
buildPythonPackage rec {
pname = "pynvml";
version = "8.0.4";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0pfykj1amqh1rixp90rg85v1nj6qmx89fahqr6ii4zlcckffmm68";
};
propagatedBuildInputs = [ cudatoolkit ];
doCheck = false; # no tests in PyPi dist
pythonImportsCheck = [ "pynvml" "pynvml.smi" ];
meta = with lib; {
description = "Python bindings for the NVIDIA Management Library";
homepage = https://www.nvidia.com;
license = licenses.bsd3;
maintainers = [ maintainers.bcdarwin ];
};
}
@@ -0,0 +1,26 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-lazy-fixture";
version = "0.6.3";
src = fetchPypi {
inherit pname version;
sha256 = "1b0hmnsxw4s2wf9pks8dg6dfy5cx3zcbzs8517lfccxsfizhqz8f";
};
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Helps to use fixtures in pytest.mark.parametrize";
homepage = "https://github.com/pytest-dev/pytest-repeat";
license = licenses.mit;
maintainers = with maintainers; [ tobim ];
};
}
@@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, setuptools
, lazr-uri
}:
buildPythonPackage rec {
pname = "wadllib";
version = "1.3.3";
src = fetchPypi {
inherit pname version;
sha256 = "1234cfe81e2cf223e56816f86df3aa18801d1770261865d93337b8b603be366e";
};
propagatedBuildInputs = [ setuptools lazr-uri ];
doCheck = isPy3k;
meta = with lib; {
description = "Navigate HTTP resources using WADL files as guides";
homepage = "https://launchpad.net/wadllib";
license = licenses.lgpl3;
maintainers = [ maintainers.marsam ];
};
}