aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2020-12-02 12:30:55 +0000
committerGitHub <noreply@github.com>2020-12-02 12:30:55 +0000
commit89e8bf0f2a0bb9c4cbf4544320d2241264e99bdc (patch)
treebbb1264d6436d4cd09dac70dfa6d2f153ca9a3a7 /pkgs/development/python-modules
parent023dafc6b80532fa2df4c50d5fdcb987f00992e0 (diff)
parente313c7d219fd93cfda926803425ec430c3dcfe66 (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/bme680/default.nix1
-rw-r--r--pkgs/development/python-modules/flake8-debugger/default.nix19
-rw-r--r--pkgs/development/python-modules/goobook/default.nix4
-rw-r--r--pkgs/development/python-modules/tinyobjloader-py/default.nix21
-rw-r--r--pkgs/development/python-modules/transformers/default.nix11
5 files changed, 37 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/bme680/default.nix b/pkgs/development/python-modules/bme680/default.nix
index 0fd28701816e..cdae502e7e59 100644
--- a/pkgs/development/python-modules/bme680/default.nix
+++ b/pkgs/development/python-modules/bme680/default.nix
@@ -32,6 +32,7 @@ buildPythonPackage rec {
description = "Python library for driving the Pimoroni BME680 Breakout";
homepage = "https://github.com/pimoroni/bme680-python";
license = licenses.mit;
+ platforms = platforms.linux;
maintainers = with maintainers; [ mic92 ];
};
}
diff --git a/pkgs/development/python-modules/flake8-debugger/default.nix b/pkgs/development/python-modules/flake8-debugger/default.nix
index 81b903621b52..46c63ec00085 100644
--- a/pkgs/development/python-modules/flake8-debugger/default.nix
+++ b/pkgs/development/python-modules/flake8-debugger/default.nix
@@ -1,26 +1,23 @@
-{ lib, fetchPypi, buildPythonPackage, pythonOlder
+{ lib, fetchPypi, buildPythonPackage, pythonOlder, pythonAtLeast, isPy27
, flake8
-, importlib-metadata
, pycodestyle
-, pytestrunner
-, pytest
+, six
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "flake8-debugger";
- version = "3.2.1";
+ version = "4.0.0";
+ disabled = isPy27;
src = fetchPypi {
inherit pname version;
- sha256 = "712d7c1ff69ddf3f0130e94cc88c2519e720760bce45e8c330bfdcb61ab4090d";
+ sha256 = "e43dc777f7db1481db473210101ec2df2bd39a45b149d7218a618e954177eda6";
};
- nativeBuildInputs = [ pytestrunner ];
+ propagatedBuildInputs = [ flake8 pycodestyle six ];
- propagatedBuildInputs = [ flake8 pycodestyle ]
- ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
-
- checkInputs = [ pytest ];
+ checkInputs = [ pytestCheckHook ];
# Tests not included in PyPI tarball
# FIXME: Remove when https://github.com/JBKahn/flake8-debugger/pull/15 is merged
diff --git a/pkgs/development/python-modules/goobook/default.nix b/pkgs/development/python-modules/goobook/default.nix
index e183e79f5703..eb6aecfecd15 100644
--- a/pkgs/development/python-modules/goobook/default.nix
+++ b/pkgs/development/python-modules/goobook/default.nix
@@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "goobook";
- version = "3.5";
+ version = "3.5.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "1rmfyma3gwdf5mrw4l3j66y86fy8hgdbd0z4a5kck0kcm3hy34j9";
+ sha256 = "6e69aeaf69112d116302f0c42ca1904f3b6efd17f15cefc12c866206160293be";
};
nativeBuildInputs = [ docutils installShellFiles ];
diff --git a/pkgs/development/python-modules/tinyobjloader-py/default.nix b/pkgs/development/python-modules/tinyobjloader-py/default.nix
new file mode 100644
index 000000000000..3c36dded5ee7
--- /dev/null
+++ b/pkgs/development/python-modules/tinyobjloader-py/default.nix
@@ -0,0 +1,21 @@
+{ lib, buildPythonPackage, pybind11, tinyobjloader }:
+
+buildPythonPackage rec {
+ pname = "tinyobjloader-py";
+ inherit (tinyobjloader) version src;
+
+ # Build needs headers from ${src}, setting sourceRoot or fetching from pypi won't work.
+ preConfigure = ''
+ cd python
+ '';
+
+ buildInputs = [ pybind11 ];
+
+ # No tests are included upstream
+ doCheck = false;
+ pythonImportsCheck = [ "tinyobjloader" ];
+
+ meta = with lib; tinyobjloader.meta // {
+ description = "Python wrapper for the C++ wavefront .obj loader tinyobjloader";
+ };
+}
diff --git a/pkgs/development/python-modules/transformers/default.nix b/pkgs/development/python-modules/transformers/default.nix
index d3559d319089..39fd7a11d0df 100644
--- a/pkgs/development/python-modules/transformers/default.nix
+++ b/pkgs/development/python-modules/transformers/default.nix
@@ -2,6 +2,7 @@
, stdenv
, fetchFromGitHub
, boto3
+, cookiecutter
, filelock
, regex
, requests
@@ -9,7 +10,6 @@
, parameterized
, protobuf
, sacremoses
-, sentencepiece
, timeout-decorator
, tokenizers
, tqdm
@@ -18,23 +18,23 @@
buildPythonPackage rec {
pname = "transformers";
- version = "3.5.1";
+ version = "4.0.0";
src = fetchFromGitHub {
owner = "huggingface";
repo = pname;
rev = "v${version}";
- sha256 = "02z5zz0rq7mbgdmsm2ccfdbca57qy7iqp0vc7jspsmdfif4acwia";
+ sha256 = "17djq32pq8d6vqip7i9pda0ldigmzckbbcd278llmpxdriqd4llg";
};
propagatedBuildInputs = [
+ cookiecutter
filelock
numpy
protobuf
regex
requests
sacremoses
- sentencepiece
tokenizers
tqdm
];
@@ -47,8 +47,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
- --replace "tokenizers == 0.9.3" "tokenizers" \
- --replace "sentencepiece == 0.1.91" "sentencepiece"
+ --replace "tokenizers == 0.9.4" "tokenizers"
'';
preCheck = ''