mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge master into staging-next
This commit is contained in:
@@ -42,6 +42,12 @@ buildPythonPackage rec {
|
||||
pytest-mock
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# this test is flaky on darwin because it depends on the resolution of filesystem mtimes
|
||||
# https://github.com/cldf/csvw/blob/45584ad63ff3002a9b3a8073607c1847c5cbac58/tests/test_db.py#L257
|
||||
"test_write_file_exists"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "CSV on the Web";
|
||||
homepage = "https://github.com/cldf/csvw";
|
||||
|
||||
49
pkgs/development/python-modules/glcontext/default.nix
Normal file
49
pkgs/development/python-modules/glcontext/default.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, libGL
|
||||
, libX11
|
||||
, pytestCheckHook
|
||||
, psutil
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "glcontext";
|
||||
version = "2.3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "moderngl";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "16kwrfjijn9bnb48rk17wapmhxq6g9s59zczh65imyncb9k82wkc";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
buildInputs = [ libGL libX11 ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace glcontext/x11.cpp \
|
||||
--replace '"libGL.so"' '"${libGL}/lib/libGL.so"' \
|
||||
--replace '"libX11.so"' '"${libX11}/lib/libX11.so"'
|
||||
substituteInPlace glcontext/egl.cpp \
|
||||
--replace '"libGL.so"' '"${libGL}/lib/libGL.so"' \
|
||||
--replace '"libEGL.so"' '"${libGL}/lib/libEGL.so"'
|
||||
'';
|
||||
|
||||
# Tests fail because they try to open display. See
|
||||
# https://github.com/NixOS/nixpkgs/pull/121439
|
||||
# for details.
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "glcontext" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/moderngl/glcontext";
|
||||
description = "OpenGL implementation for ModernGL";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ friedelino ];
|
||||
};
|
||||
}
|
||||
@@ -28,6 +28,11 @@ buildPythonPackage rec {
|
||||
responses
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pyjwt[crypto]>=1.5.3,<2.0.0" "pyjwt[crypto] >=1.5.3, <3.0.0"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "globus_sdk" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ipydatawidgets";
|
||||
version = "4.2.0";
|
||||
version = "4.1.0";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d0e4b58b59b508165e8562b8f5d1dbfcd739855847ec0477bd9185a5e9b7c5bc";
|
||||
sha256 = "d9f94828c11e3b40350fb14a02e027f42670a7c372bcb30db18d552dcfab7c01";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
, isPy3k
|
||||
, libGL
|
||||
, libX11
|
||||
, glcontext
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -17,7 +18,7 @@ buildPythonPackage rec {
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
buildInputs = [ libGL libX11 ];
|
||||
buildInputs = [ libGL libX11 glcontext ];
|
||||
|
||||
# Tests need a display to run.
|
||||
doCheck = false;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
, pyglet
|
||||
, pillow
|
||||
, pyrr
|
||||
, glcontext
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -20,7 +21,7 @@ buildPythonPackage rec {
|
||||
sha256 = "1p03j91pk2bwycd13p0qi8kns1sf357180hd2mkaip8mfaf33x3q";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy moderngl pyglet pillow pyrr ];
|
||||
propagatedBuildInputs = [ numpy moderngl pyglet pillow pyrr glcontext ];
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
|
||||
@@ -41,10 +41,16 @@ buildPythonPackage rec {
|
||||
disabledTests = [
|
||||
# requires FAISS (not in Nixpkgs)
|
||||
"test_accuracy_calculator_and_faiss"
|
||||
"test_global_embedding_space_tester"
|
||||
"test_with_same_parent_label_tester"
|
||||
# require network access:
|
||||
"test_get_nearest_neighbors"
|
||||
"test_tuplestoweights_sampler"
|
||||
"test_untrained_indexer"
|
||||
"test_metric_loss_only"
|
||||
"test_pca"
|
||||
# flaky
|
||||
"test_distributed_classifier_loss_and_miner"
|
||||
];
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -37,8 +37,12 @@ buildPythonPackage rec {
|
||||
inherit doCheck;
|
||||
|
||||
disabledTests = [
|
||||
"test_gunicorn" # No "examples" directory in pypi distribution.
|
||||
"test_zero_downtime" # No "examples.delayed_response.app" module in pypi distribution.
|
||||
# No "examples" directory in pypi distribution
|
||||
"test_gunicorn"
|
||||
"test_zero_downtime"
|
||||
# flaky
|
||||
"test_keep_alive_client_timeout"
|
||||
"test_reloader_live"
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
Reference in New Issue
Block a user