Merge pull request #299223 from NixOS/python-updates
[python-updates] 2024-03-24 - selective updates
This commit is contained in:
commit
ea1480099d
|
@ -15,7 +15,11 @@ buildPythonApplication rec {
|
||||||
hash = "sha256-iUUsVIDLQAiaMomfA2LvvJZ2ePhgADtC6GCwIpRC1MA=";
|
hash = "sha256-iUUsVIDLQAiaMomfA2LvvJZ2ePhgADtC6GCwIpRC1MA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
colorthief
|
colorthief
|
||||||
ffmpeg-python
|
ffmpeg-python
|
||||||
mpd2
|
mpd2
|
||||||
|
@ -25,6 +29,8 @@ buildPythonApplication rec {
|
||||||
ueberzug
|
ueberzug
|
||||||
];
|
];
|
||||||
|
|
||||||
|
doCheck = false; # no tests
|
||||||
|
|
||||||
# pythonImportsCheck is disabled because this package doesn't expose any modules.
|
# pythonImportsCheck is disabled because this package doesn't expose any modules.
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -12,6 +12,10 @@ python3Packages.buildPythonApplication rec {
|
||||||
sha256 = "sha256-xOyj5XerOwgfvI0qj7+7oshDvd18h5IeZvcJTis8nWo=";
|
sha256 = "sha256-xOyj5XerOwgfvI0qj7+7oshDvd18h5IeZvcJTis8nWo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = with python3Packages; [
|
||||||
|
cython
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
# requirements
|
# requirements
|
||||||
pyaes
|
pyaes
|
||||||
|
@ -36,7 +40,6 @@ python3Packages.buildPythonApplication rec {
|
||||||
cryptography
|
cryptography
|
||||||
|
|
||||||
# requirements-hw
|
# requirements-hw
|
||||||
cython
|
|
||||||
trezor
|
trezor
|
||||||
keepkey
|
keepkey
|
||||||
btchip-python
|
btchip-python
|
||||||
|
|
|
@ -21,7 +21,7 @@ python3.pkgs.buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = with python3.pkgs; [
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
cython
|
cython_0
|
||||||
numpy
|
numpy
|
||||||
setuptools
|
setuptools
|
||||||
wheel
|
wheel
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, sage-src
|
, sage-src
|
||||||
, cython_3
|
, cython
|
||||||
, jinja2
|
, jinja2
|
||||||
, pkgconfig # the python module, not the pkg-config alias
|
, pkgconfig # the python module, not the pkg-config alias
|
||||||
}:
|
}:
|
||||||
|
@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||||
pname = "sage-setup";
|
pname = "sage-setup";
|
||||||
src = sage-src;
|
src = sage-src;
|
||||||
|
|
||||||
nativeBuildInputs = [ cython_3 ];
|
nativeBuildInputs = [ cython ];
|
||||||
buildInputs = [ pkgconfig ];
|
buildInputs = [ pkgconfig ];
|
||||||
propagatedBuildInputs = [ jinja2 ];
|
propagatedBuildInputs = [ jinja2 ];
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
, cvxopt
|
, cvxopt
|
||||||
, cypari2
|
, cypari2
|
||||||
, cysignals
|
, cysignals
|
||||||
, cython_3
|
, cython
|
||||||
, fpylll
|
, fpylll
|
||||||
, gmpy2
|
, gmpy2
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
|
@ -153,7 +153,7 @@ buildPythonPackage rec {
|
||||||
cvxopt
|
cvxopt
|
||||||
cypari2
|
cypari2
|
||||||
cysignals
|
cysignals
|
||||||
cython_3
|
cython
|
||||||
fpylll
|
fpylll
|
||||||
gmpy2
|
gmpy2
|
||||||
importlib-metadata
|
importlib-metadata
|
||||||
|
|
|
@ -55,7 +55,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
pytest-freezer
|
pytest-freezer
|
||||||
pytest-mock
|
pytest-mock
|
||||||
pytest-regressions
|
pytest-regressions
|
||||||
(pytestCheckHook.override { pytest = pytest_7; })
|
pytest7CheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
|
@ -30,7 +30,7 @@ pythonPackages.buildPythonApplication rec {
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
git
|
git
|
||||||
pythonPackages.pytestCheckHook
|
pythonPackages.pytest7CheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# 1. git fails to run as it cannot detect the email address, so we set it
|
# 1. git fails to run as it cannot detect the email address, so we set it
|
||||||
|
|
|
@ -76,7 +76,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeCheckInputs = with python3.pkgs; [
|
nativeCheckInputs = with python3.pkgs; [
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
cpio
|
cpio
|
||||||
cdrtools
|
cdrtools
|
||||||
xorriso
|
xorriso
|
||||||
|
|
|
@ -86,6 +86,7 @@ python.pkgs.buildPythonApplication rec {
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
"django-csp"
|
"django-csp"
|
||||||
|
"django-filter"
|
||||||
"python-dateutil"
|
"python-dateutil"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -94,6 +94,7 @@ python.pkgs.buildPythonApplication rec {
|
||||||
--replace-fail psycopg2-binary psycopg2 \
|
--replace-fail psycopg2-binary psycopg2 \
|
||||||
--replace-fail vat_moss_forked==2020.3.20.0.11.0 vat-moss \
|
--replace-fail vat_moss_forked==2020.3.20.0.11.0 vat-moss \
|
||||||
--replace-fail "bleach==5.0.*" bleach \
|
--replace-fail "bleach==5.0.*" bleach \
|
||||||
|
--replace-fail "django-filter==23.5" django-filter \
|
||||||
--replace-fail "dnspython==2.5.*" dnspython \
|
--replace-fail "dnspython==2.5.*" dnspython \
|
||||||
--replace-fail "importlib_metadata==7.*" importlib_metadata \
|
--replace-fail "importlib_metadata==7.*" importlib_metadata \
|
||||||
--replace-fail "protobuf==4.25.*" protobuf \
|
--replace-fail "protobuf==4.25.*" protobuf \
|
||||||
|
@ -107,7 +108,6 @@ python.pkgs.buildPythonApplication rec {
|
||||||
build-system = with python.pkgs; [
|
build-system = with python.pkgs; [
|
||||||
gettext
|
gettext
|
||||||
nodejs
|
nodejs
|
||||||
pythonRelaxDepsHook
|
|
||||||
setuptools
|
setuptools
|
||||||
tomli
|
tomli
|
||||||
];
|
];
|
||||||
|
|
|
@ -33,6 +33,7 @@ buildPythonApplication rec {
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
"more-itertools"
|
"more-itertools"
|
||||||
|
"packaging"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|
|
@ -57,6 +57,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
"asttokens"
|
"asttokens"
|
||||||
|
"packaging"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest_7
|
|
||||||
, setuptools
|
, setuptools
|
||||||
, numpy
|
, numpy
|
||||||
, packaging
|
, packaging
|
||||||
|
@ -47,7 +46,7 @@ buildPythonPackage rec {
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
evaluate
|
evaluate
|
||||||
parameterized
|
parameterized
|
||||||
(pytestCheckHook.override { pytest = pytest_7; })
|
pytest7CheckHook
|
||||||
transformers
|
transformers
|
||||||
];
|
];
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
|
||||||
# build-system
|
# build-system
|
||||||
, cython_3
|
, cython
|
||||||
, setuptools
|
, setuptools
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
@ -39,7 +39,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
build-system = [
|
build-system = [
|
||||||
setuptools
|
setuptools
|
||||||
cython_3
|
cython
|
||||||
];
|
];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|
|
@ -21,8 +21,7 @@
|
||||||
, freezegun
|
, freezegun
|
||||||
, gunicorn
|
, gunicorn
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest_7
|
|
||||||
, python-on-whales
|
, python-on-whales
|
||||||
, re-assert
|
, re-assert
|
||||||
, trustme
|
, trustme
|
||||||
|
@ -83,7 +82,7 @@ buildPythonPackage rec {
|
||||||
freezegun
|
freezegun
|
||||||
gunicorn
|
gunicorn
|
||||||
pytest-mock
|
pytest-mock
|
||||||
(pytestCheckHook.override { pytest = pytest_7; })
|
pytest7CheckHook
|
||||||
python-on-whales
|
python-on-whales
|
||||||
re-assert
|
re-assert
|
||||||
] ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) [
|
] ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) [
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest-xdist
|
, pytest-xdist
|
||||||
, python-dateutil
|
, python-dateutil
|
||||||
}:
|
}:
|
||||||
|
@ -49,7 +49,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
python-dateutil
|
python-dateutil
|
||||||
];
|
];
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, fontconfig
|
, fontconfig
|
||||||
, graphviz
|
, graphviz
|
||||||
, poetry-core
|
, poetry-core
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, six
|
, six
|
||||||
, substituteAll
|
, substituteAll
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "anytree";
|
pname = "anytree";
|
||||||
version = "2.12.0";
|
version = "2.12.1";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
@ -22,7 +22,7 @@ buildPythonPackage rec {
|
||||||
owner = "c0fec0de";
|
owner = "c0fec0de";
|
||||||
repo = "anytree";
|
repo = "anytree";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-8mV9Lf6NLPUDVurXCxG+tqe7+3TrIn2H+7tHa6BpTzk=";
|
hash = "sha256-5HU8kR3B2RHiGBraQ2FTgVtGHJi+Lha9U/7rpNsYCCI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = lib.optionals withGraphviz [
|
patches = lib.optionals withGraphviz [
|
||||||
|
@ -41,12 +41,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
];
|
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
# pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Tests print “Fontconfig error: Cannot load default config file”
|
# Tests print “Fontconfig error: Cannot load default config file”
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, setuptools
|
||||||
, sqlite
|
, sqlite
|
||||||
, isPyPy
|
, isPyPy
|
||||||
, python
|
, python
|
||||||
|
@ -8,8 +9,8 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "apsw";
|
pname = "apsw";
|
||||||
version = "3.45.1.0";
|
version = "3.45.2.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = isPyPy;
|
disabled = isPyPy;
|
||||||
|
|
||||||
|
@ -17,9 +18,13 @@ buildPythonPackage rec {
|
||||||
owner = "rogerbinns";
|
owner = "rogerbinns";
|
||||||
repo = "apsw";
|
repo = "apsw";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-NkpkciLR2TgfK/7UQHEzvQu8qRj4UJyOlGQbiV23qrc=";
|
hash = "sha256-tTi3/10W4OoGH6PQVhvPWc5o09on5BZrWoAvrfh4C/E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
sqlite
|
sqlite
|
||||||
];
|
];
|
||||||
|
@ -36,6 +41,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
changelog = "https://github.com/rogerbinns/apsw/blob/${src.rev}/doc/changes.rst";
|
||||||
description = "A Python wrapper for the SQLite embedded relational database engine";
|
description = "A Python wrapper for the SQLite embedded relational database engine";
|
||||||
homepage = "https://github.com/rogerbinns/apsw";
|
homepage = "https://github.com/rogerbinns/apsw";
|
||||||
license = licenses.zlib;
|
license = licenses.zlib;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# build time
|
# build time
|
||||||
, astropy-extension-helpers
|
, astropy-extension-helpers
|
||||||
, cython_3
|
, cython
|
||||||
, jinja2
|
, jinja2
|
||||||
, oldest-supported-numpy
|
, oldest-supported-numpy
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
|
@ -37,7 +37,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
astropy-extension-helpers
|
astropy-extension-helpers
|
||||||
cython_3
|
cython
|
||||||
jinja2
|
jinja2
|
||||||
oldest-supported-numpy
|
oldest-supported-numpy
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
|
|
|
@ -41,16 +41,17 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# Tests require networking
|
# Tests require networking
|
||||||
"examples"
|
"examples"
|
||||||
"test/integration"
|
"test/integration"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# pytest 8 compat issue
|
||||||
|
"test_happy_version"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"aws_encryption_sdk"
|
"aws_encryption_sdk"
|
||||||
];
|
];
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
, pyparsing
|
, pyparsing
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, pythonRelaxDepsHook
|
||||||
, redshift-connector
|
, redshift-connector
|
||||||
, requests-aws4auth
|
, requests-aws4auth
|
||||||
}:
|
}:
|
||||||
|
@ -39,6 +40,11 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
poetry-core
|
poetry-core
|
||||||
|
pythonRelaxDepsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonRelaxDeps = [
|
||||||
|
"packaging"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, poetry-core
|
, poetry-core
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pythonRelaxDepsHook
|
, pythonRelaxDepsHook
|
||||||
, setuptools
|
, setuptools
|
||||||
, jsonschema
|
, jsonschema
|
||||||
|
@ -47,11 +47,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
];
|
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
, isort
|
, isort
|
||||||
, python
|
, python
|
||||||
, pydantic
|
, pydantic
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
|
@ -53,7 +53,7 @@ buildPythonPackage rec {
|
||||||
pydantic
|
pydantic
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytest-mock
|
pytest-mock
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
tomlkit
|
tomlkit
|
||||||
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, setuptools
|
, setuptools
|
||||||
, cython
|
, cython_0
|
||||||
, hypothesis
|
, hypothesis
|
||||||
, numpy
|
, numpy
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
@ -38,7 +38,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools
|
setuptools
|
||||||
cython
|
cython_0
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
# build-system
|
# build-system
|
||||||
, cmake
|
, cmake
|
||||||
, cython_3
|
, cython
|
||||||
, ninja
|
, ninja
|
||||||
, oldest-supported-numpy
|
, oldest-supported-numpy
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
@ -47,7 +47,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
cython_3
|
cython
|
||||||
ninja
|
ninja
|
||||||
oldest-supported-numpy
|
oldest-supported-numpy
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cryptography
|
, cryptography
|
||||||
, cython_3
|
, cython
|
||||||
, poetry-core
|
, poetry-core
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
@ -28,7 +28,7 @@ buildPythonPackage rec {
|
||||||
env.REQUIRE_CYTHON = 1;
|
env.REQUIRE_CYTHON = 1;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
poetry-core
|
poetry-core
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cython_3
|
, cython
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, poetry-core
|
, poetry-core
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
poetry-core
|
poetry-core
|
||||||
setuptools
|
setuptools
|
||||||
wheel
|
wheel
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cryptography
|
, cryptography
|
||||||
, cython
|
, cython_0
|
||||||
, eventlet
|
, eventlet
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, geomet
|
, geomet
|
||||||
|
@ -43,7 +43,7 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython
|
cython_0
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "certifi";
|
pname = "certifi";
|
||||||
version = "2023.11.17";
|
version = "2024.02.02";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = "python-certifi";
|
repo = "python-certifi";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-H3zsFJjWt2+tT7yqQOOZZwSL5y0AtfDz6Fqxwpm4Wl8=";
|
hash = "sha256-gnWJjZy5E/0lvAeLftXNtcHH6RHL/dUomXOBgumiWX8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
|
|
@ -1,13 +1,17 @@
|
||||||
diff --git a/certifi/core.py b/certifi/core.py
|
diff --git a/certifi/core.py b/certifi/core.py
|
||||||
index de02898..c033d20 100644
|
index 91f538b..1110ce0 100644
|
||||||
--- a/certifi/core.py
|
--- a/certifi/core.py
|
||||||
+++ b/certifi/core.py
|
+++ b/certifi/core.py
|
||||||
@@ -4,15 +4,25 @@ certifi.py
|
@@ -4,6 +4,7 @@ certifi.py
|
||||||
|
|
||||||
This module returns the installation location of cacert.pem or its contents.
|
This module returns the installation location of cacert.pem or its contents.
|
||||||
"""
|
"""
|
||||||
+import os
|
+import os
|
||||||
import sys
|
import sys
|
||||||
|
import atexit
|
||||||
|
|
||||||
|
@@ -11,12 +12,21 @@ def exit_cacert_ctx() -> None:
|
||||||
|
_CACERT_CTX.__exit__(None, None, None) # type: ignore[union-attr]
|
||||||
|
|
||||||
|
|
||||||
+def get_cacert_path_from_environ():
|
+def get_cacert_path_from_environ():
|
||||||
|
@ -29,17 +33,16 @@ index de02898..c033d20 100644
|
||||||
|
|
||||||
def where() -> str:
|
def where() -> str:
|
||||||
# This is slightly terrible, but we want to delay extracting the file
|
# This is slightly terrible, but we want to delay extracting the file
|
||||||
@@ -39,14 +49,16 @@ if sys.version_info >= (3, 11):
|
@@ -44,6 +54,8 @@ if sys.version_info >= (3, 11):
|
||||||
return _CACERT_PATH
|
return _CACERT_PATH
|
||||||
|
|
||||||
def contents() -> str:
|
def contents() -> str:
|
||||||
- return files("certifi").joinpath("cacert.pem").read_text(encoding="ascii")
|
|
||||||
+ if _CACERT_PATH is not None:
|
+ if _CACERT_PATH is not None:
|
||||||
+ return open(_CACERT_PATH, encoding="utf-8").read()
|
+ return open(_CACERT_PATH, encoding="utf-8").read()
|
||||||
+ return files("certifi").joinpath("cacert.pem").read_text(encoding="utf-8")
|
return files("certifi").joinpath("cacert.pem").read_text(encoding="ascii")
|
||||||
|
|
||||||
elif sys.version_info >= (3, 7):
|
elif sys.version_info >= (3, 7):
|
||||||
|
@@ -51,7 +63,7 @@ elif sys.version_info >= (3, 7):
|
||||||
from importlib.resources import path as get_path, read_text
|
from importlib.resources import path as get_path, read_text
|
||||||
|
|
||||||
_CACERT_CTX = None
|
_CACERT_CTX = None
|
||||||
|
@ -48,7 +51,7 @@ index de02898..c033d20 100644
|
||||||
|
|
||||||
def where() -> str:
|
def where() -> str:
|
||||||
# This is slightly terrible, but we want to delay extracting the
|
# This is slightly terrible, but we want to delay extracting the
|
||||||
@@ -74,7 +86,9 @@ elif sys.version_info >= (3, 7):
|
@@ -80,7 +92,9 @@ elif sys.version_info >= (3, 7):
|
||||||
return _CACERT_PATH
|
return _CACERT_PATH
|
||||||
|
|
||||||
def contents() -> str:
|
def contents() -> str:
|
||||||
|
@ -59,7 +62,7 @@ index de02898..c033d20 100644
|
||||||
|
|
||||||
else:
|
else:
|
||||||
import os
|
import os
|
||||||
@@ -84,6 +98,8 @@ else:
|
@@ -90,6 +104,8 @@ else:
|
||||||
Package = Union[types.ModuleType, str]
|
Package = Union[types.ModuleType, str]
|
||||||
Resource = Union[str, "os.PathLike"]
|
Resource = Union[str, "os.PathLike"]
|
||||||
|
|
||||||
|
@ -68,7 +71,7 @@ index de02898..c033d20 100644
|
||||||
# This fallback will work for Python versions prior to 3.7 that lack the
|
# This fallback will work for Python versions prior to 3.7 that lack the
|
||||||
# importlib.resources module but relies on the existing `where` function
|
# importlib.resources module but relies on the existing `where` function
|
||||||
# so won't address issues with environments like PyOxidizer that don't set
|
# so won't address issues with environments like PyOxidizer that don't set
|
||||||
@@ -102,7 +118,14 @@ else:
|
@@ -108,7 +124,13 @@ else:
|
||||||
def where() -> str:
|
def where() -> str:
|
||||||
f = os.path.dirname(__file__)
|
f = os.path.dirname(__file__)
|
||||||
|
|
||||||
|
@ -78,9 +81,7 @@ index de02898..c033d20 100644
|
||||||
return os.path.join(f, "cacert.pem")
|
return os.path.join(f, "cacert.pem")
|
||||||
|
|
||||||
def contents() -> str:
|
def contents() -> str:
|
||||||
- return read_text("certifi", "cacert.pem", encoding="ascii")
|
|
||||||
+ if _CACERT_PATH is not None:
|
+ if _CACERT_PATH is not None:
|
||||||
+ with open(_CACERT_PATH, encoding="utf-8") as data:
|
+ with open(_CACERT_PATH, encoding="utf-8") as data:
|
||||||
+ return data.read()
|
+ return data.read()
|
||||||
+
|
return read_text("certifi", "cacert.pem", encoding="ascii")
|
||||||
+ return read_text("certifi", "cacert.pem", encoding="utf-8")
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
|
||||||
# build-system
|
# build-system
|
||||||
, cython_3
|
, cython
|
||||||
, poetry-core
|
, poetry-core
|
||||||
, setuptools
|
, setuptools
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ buildPythonPackage {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
poetry-core
|
poetry-core
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
, mock
|
, mock
|
||||||
, mypy-extensions
|
, mypy-extensions
|
||||||
, pip
|
, pip
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, requests
|
, requests
|
||||||
|
@ -61,15 +61,11 @@ buildPythonPackage rec {
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
hypothesis
|
hypothesis
|
||||||
mock
|
mock
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
requests
|
requests
|
||||||
websocket-client
|
websocket-client
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# Don't check the templates and the sample app
|
# Don't check the templates and the sample app
|
||||||
"chalice/templates"
|
"chalice/templates"
|
||||||
|
|
|
@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||||
owner = "plotly";
|
owner = "plotly";
|
||||||
repo = "plotly.py";
|
repo = "plotly.py";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-LSZGaefxQC6h9VAJ2wgZyaQPR6vs0wrp2oxd51I3pL8=";
|
hash = "sha256-i//LKTNmoIrusBnpfSGc9cDijPxg/dY/7fumV3kfTAY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "${src.name}/packages/python/chart-studio";
|
sourceRoot = "${src.name}/packages/python/chart-studio";
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, setuptools
|
||||||
, absl-py
|
, absl-py
|
||||||
, cloudpickle
|
, cloudpickle
|
||||||
, dm-tree
|
, dm-tree
|
||||||
|
@ -15,8 +16,8 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "chex";
|
pname = "chex";
|
||||||
version = "0.1.85";
|
version = "0.1.86";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
|
@ -24,10 +25,14 @@ buildPythonPackage rec {
|
||||||
owner = "deepmind";
|
owner = "deepmind";
|
||||||
repo = "chex";
|
repo = "chex";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-7k/+2dNNbPBXtbabuOEVpAI7T1SuM4JDf074dmTg/vs=";
|
hash = "sha256-Z5Ns4fG5pC99I4xdGjDMKX6YZpTtd1y0TWcIOtr7dug=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
absl-py
|
absl-py
|
||||||
jaxlib
|
jaxlib
|
||||||
jax
|
jax
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cython_3
|
, cython
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, setuptools
|
, setuptools
|
||||||
|
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
# build_requires
|
# build_requires
|
||||||
, cython_3
|
, cython
|
||||||
# install_requires
|
# install_requires
|
||||||
, certifi
|
, certifi
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
|
@ -36,7 +36,7 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-YEtcM9+GO8mYv2pyaBYmXdmWLXVuteKtQIJR4H+Xsd4=";
|
hash = "sha256-YEtcM9+GO8mYv2pyaBYmXdmWLXVuteKtQIJR4H+Xsd4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cython_3 ];
|
nativeBuildInputs = [ cython ];
|
||||||
setupPyBuildFlags = [ "--inplace" ];
|
setupPyBuildFlags = [ "--inplace" ];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, clickhouse-cityhash
|
, clickhouse-cityhash
|
||||||
, cython_3
|
, cython
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, freezegun
|
, freezegun
|
||||||
, lz4
|
, lz4
|
||||||
|
@ -29,7 +29,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
, boto3
|
, boto3
|
||||||
, psutil
|
, psutil
|
||||||
, pydantic
|
, pydantic
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest_7
|
|
||||||
, pytest-cases
|
, pytest-cases
|
||||||
, pytest-cov
|
, pytest-cov
|
||||||
, pytest-xdist
|
, pytest-xdist
|
||||||
|
@ -66,7 +65,7 @@ buildPythonPackage rec {
|
||||||
google-cloud-storage
|
google-cloud-storage
|
||||||
psutil
|
psutil
|
||||||
pydantic
|
pydantic
|
||||||
(pytestCheckHook.override { pytest = pytest_7; })
|
pytest7CheckHook
|
||||||
pytest-cases
|
pytest-cases
|
||||||
pytest-cov
|
pytest-cov
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, setuptools
|
||||||
|
, setuptools-scm
|
||||||
, param
|
, param
|
||||||
, pyct
|
, pyct
|
||||||
, pytest-mpl
|
, pytest-mpl
|
||||||
|
@ -10,14 +12,19 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "colorcet";
|
pname = "colorcet";
|
||||||
version = "3.1.0";
|
version = "3.1.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-KSGzzYGiKIqvLWPbwM48JtzYgujDicxQXWiGv3qppOs=";
|
hash = "sha256-KSGzzYGiKIqvLWPbwM48JtzYgujDicxQXWiGv3qppOs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
param
|
param
|
||||||
pyct
|
pyct
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cython_3
|
, cython
|
||||||
, pexpect
|
, pexpect
|
||||||
, python
|
, python
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonAtLeast
|
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchpatch
|
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, setuptools
|
, setuptools
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
|
@ -10,7 +8,7 @@
|
||||||
, jaraco-test
|
, jaraco-test
|
||||||
, lxml
|
, lxml
|
||||||
, mock
|
, mock
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, importlib-resources
|
, importlib-resources
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -37,16 +35,11 @@ buildPythonPackage rec {
|
||||||
jaraco-test
|
jaraco-test
|
||||||
lxml
|
lxml
|
||||||
mock
|
mock
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
] ++ lib.optionals (pythonOlder "3.9") [
|
] ++ lib.optionals (pythonOlder "3.9") [
|
||||||
importlib-resources
|
importlib-resources
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
# pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# access network
|
# access network
|
||||||
"test_parseUrl"
|
"test_parseUrl"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pari
|
, pari
|
||||||
, gmp
|
, gmp
|
||||||
, cython_3
|
, cython
|
||||||
, cysignals
|
, cysignals
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cysignals
|
cysignals
|
||||||
cython_3
|
cython
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cython_3
|
, cython
|
||||||
, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler
|
, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
] ++ lib.optionals pariSupport [
|
] ++ lib.optionals pariSupport [
|
||||||
# When cysignals is built with pari, including cysignals into the
|
# When cysignals is built with pari, including cysignals into the
|
||||||
# buildInputs of another python package will cause cython to link against
|
# buildInputs of another python package will cause cython to link against
|
||||||
|
|
91
pkgs/development/python-modules/cython/0.nix
Normal file
91
pkgs/development/python-modules/cython/0.nix
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
|
, setuptools
|
||||||
|
, python
|
||||||
|
, pkg-config
|
||||||
|
, gdb
|
||||||
|
, numpy
|
||||||
|
, ncurses
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
excludedTests = [ "reimport_from_subinterpreter" ]
|
||||||
|
# cython's testsuite is not working very well with libc++
|
||||||
|
# We are however optimistic about things outside of testsuite still working
|
||||||
|
++ lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ]
|
||||||
|
# Some tests in the test suite isn't working on aarch64. Disable them for
|
||||||
|
# now until upstream finds a workaround.
|
||||||
|
# Upstream issue here: https://github.com/cython/cython/issues/2308
|
||||||
|
++ lib.optionals stdenv.isAarch64 [ "numpy_memoryview" ]
|
||||||
|
++ lib.optionals stdenv.isi686 [ "future_division" "overflow_check_longlong" ]
|
||||||
|
;
|
||||||
|
|
||||||
|
in buildPythonPackage rec {
|
||||||
|
pname = "cython";
|
||||||
|
version = "0.29.36";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
pname = "Cython";
|
||||||
|
inherit version;
|
||||||
|
hash = "sha256-QcDP0tdU44PJ7rle/8mqSrhH0Ml0cHfd18Dctow7wB8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
gdb numpy ncurses
|
||||||
|
];
|
||||||
|
|
||||||
|
LC_ALL = "en_US.UTF-8";
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# backport Cython 3.0 trashcan support (https://github.com/cython/cython/pull/2842) to 0.X series.
|
||||||
|
# it does not affect Python code unless the code explicitly uses the feature.
|
||||||
|
# trashcan support is needed to avoid stack overflows during object deallocation in sage (https://trac.sagemath.org/ticket/27267)
|
||||||
|
./trashcan.patch
|
||||||
|
# The above commit introduces custom trashcan macros, as well as
|
||||||
|
# compiler changes to use them in Cython-emitted code. The latter
|
||||||
|
# change is still useful, but the former has been upstreamed as of
|
||||||
|
# Python 3.8, and the patch below makes Cython use the upstream
|
||||||
|
# trashcan macros whenever available. This is needed for Python
|
||||||
|
# 3.11 support, because the API used in Cython's implementation
|
||||||
|
# changed: https://github.com/cython/cython/pull/4475
|
||||||
|
(fetchpatch {
|
||||||
|
name = "disable-trashcan.patch";
|
||||||
|
url = "https://github.com/cython/cython/commit/e337825cdcf5e94d38ba06a0cb0188e99ce0cc92.patch";
|
||||||
|
hash = "sha256-q0f63eetKrDpmP5Z4v8EuGxg26heSyp/62OYqhRoSso=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
export HOME="$NIX_BUILD_TOP"
|
||||||
|
${python.interpreter} runtests.py -j$NIX_BUILD_CORES \
|
||||||
|
--no-code-style \
|
||||||
|
${lib.optionalString (builtins.length excludedTests != 0)
|
||||||
|
''--exclude="(${builtins.concatStringsSep "|" excludedTests})"''}
|
||||||
|
'';
|
||||||
|
|
||||||
|
# https://github.com/cython/cython/issues/2785
|
||||||
|
# Temporary solution
|
||||||
|
doCheck = false;
|
||||||
|
# doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
|
# force regeneration of generated code in source distributions
|
||||||
|
# https://github.com/cython/cython/issues/5089
|
||||||
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
changelog = "https://github.com/cython/cython/blob/${version}/CHANGES.rst";
|
||||||
|
description = "An optimising static compiler for both the Python programming language and the extended Cython programming language";
|
||||||
|
homepage = "https://cython.org";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = with lib.maintainers; [ fridh ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,7 +2,6 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, fetchpatch
|
|
||||||
, setuptools
|
, setuptools
|
||||||
, python
|
, python
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
@ -25,16 +24,16 @@ let
|
||||||
|
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage rec {
|
||||||
pname = "cython";
|
pname = "cython";
|
||||||
version = "0.29.36";
|
version = "3.0.9";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "Cython";
|
pname = "Cython";
|
||||||
inherit version;
|
inherit version;
|
||||||
hash = "sha256-QcDP0tdU44PJ7rle/8mqSrhH0Ml0cHfd18Dctow7wB8=";
|
hash = "sha256-otNU8FnR8FXTTPqmLFtovHisLOq2QHFI1H+1CM87pPM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
pkg-config
|
pkg-config
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
@ -43,26 +42,7 @@ in buildPythonPackage rec {
|
||||||
gdb numpy ncurses
|
gdb numpy ncurses
|
||||||
];
|
];
|
||||||
|
|
||||||
LC_ALL = "en_US.UTF-8";
|
env.LC_ALL = "en_US.UTF-8";
|
||||||
|
|
||||||
patches = [
|
|
||||||
# backport Cython 3.0 trashcan support (https://github.com/cython/cython/pull/2842) to 0.X series.
|
|
||||||
# it does not affect Python code unless the code explicitly uses the feature.
|
|
||||||
# trashcan support is needed to avoid stack overflows during object deallocation in sage (https://trac.sagemath.org/ticket/27267)
|
|
||||||
./trashcan.patch
|
|
||||||
# The above commit introduces custom trashcan macros, as well as
|
|
||||||
# compiler changes to use them in Cython-emitted code. The latter
|
|
||||||
# change is still useful, but the former has been upstreamed as of
|
|
||||||
# Python 3.8, and the patch below makes Cython use the upstream
|
|
||||||
# trashcan macros whenever available. This is needed for Python
|
|
||||||
# 3.11 support, because the API used in Cython's implementation
|
|
||||||
# changed: https://github.com/cython/cython/pull/4475
|
|
||||||
(fetchpatch {
|
|
||||||
name = "disable-trashcan.patch";
|
|
||||||
url = "https://github.com/cython/cython/commit/e337825cdcf5e94d38ba06a0cb0188e99ce0cc92.patch";
|
|
||||||
hash = "sha256-q0f63eetKrDpmP5Z4v8EuGxg26heSyp/62OYqhRoSso=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
export HOME="$NIX_BUILD_TOP"
|
export HOME="$NIX_BUILD_TOP"
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, unittestCheckHook
|
, unittestCheckHook
|
||||||
, cython
|
, cython_0
|
||||||
, setuptools
|
, setuptools
|
||||||
, wheel
|
, wheel
|
||||||
, numpy
|
, numpy
|
||||||
|
@ -32,7 +31,7 @@ buildPythonPackage rec {
|
||||||
unittestFlagsArray = [ "-s" "test" "-p" "'*.py'" "-v" ];
|
unittestFlagsArray = [ "-s" "test" "-p" "'*.py'" "-v" ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython
|
cython_0
|
||||||
setuptools
|
setuptools
|
||||||
wheel
|
wheel
|
||||||
];
|
];
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "dask";
|
pname = "dask";
|
||||||
version = "2024.1.1";
|
version = "2024.2.1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
|
@ -47,7 +47,7 @@ buildPythonPackage rec {
|
||||||
owner = "dask";
|
owner = "dask";
|
||||||
repo = "dask";
|
repo = "dask";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-L8bRh2bx36CYrAFXYJF67rCeCRfm5ufhTkMFRJo0yYo=";
|
hash = "sha256-8VFtKPaF0PqCjqFB+plFe1GjUno5j7j86+wxKhzByyw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -127,8 +127,6 @@ buildPythonPackage rec {
|
||||||
"--reruns 3"
|
"--reruns 3"
|
||||||
# Don't run tests that require network access
|
# Don't run tests that require network access
|
||||||
"-m 'not network'"
|
"-m 'not network'"
|
||||||
# pytest.PytestRemovedIn8Warning: Passing None has been deprecated.
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = lib.optionals stdenv.isDarwin [
|
disabledTests = lib.optionals stdenv.isDarwin [
|
||||||
|
|
|
@ -58,6 +58,7 @@ buildPythonPackage rec {
|
||||||
"mashumaro"
|
"mashumaro"
|
||||||
"networkx"
|
"networkx"
|
||||||
"logbook"
|
"logbook"
|
||||||
|
"pathspec"
|
||||||
"urllib3"
|
"urllib3"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, async-timeout
|
, async-timeout
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cython_3
|
, cython
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, poetry-core
|
, poetry-core
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
|
@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||||
env.REQUIRE_CYTHON = 1;
|
env.REQUIRE_CYTHON = 1;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
poetry-core
|
poetry-core
|
||||||
setuptools
|
setuptools
|
||||||
wheel
|
wheel
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "deal";
|
pname = "deal";
|
||||||
version = "4.24.3";
|
version = "4.24.4";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||||
owner = "life4";
|
owner = "life4";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-QlM3d/jmg6v3L3D45+cgcCej71U1dl4uZ6sAYGGm3tU=";
|
hash = "sha256-4orpoYfPGSvquhg9w63uUe8QbBa2RUpxaEJ9uy28+fU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -62,10 +62,6 @@ buildPythonPackage rec {
|
||||||
flake8
|
flake8
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# needs internet access
|
# needs internet access
|
||||||
"test_smoke_has"
|
"test_smoke_has"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, ruamel-yaml
|
, ruamel-yaml
|
||||||
, attrs
|
, attrs
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest-xdist
|
, pytest-xdist
|
||||||
, numpy
|
, numpy
|
||||||
}:
|
}:
|
||||||
|
@ -36,16 +36,11 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
numpy
|
numpy
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
# pytest.PytestRemovedIn8Warning: Passing None has been deprecated.
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
"tests/test_spec.py"
|
"tests/test_spec.py"
|
||||||
];
|
];
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, mock
|
, mock
|
||||||
, pkgs
|
, pkgs
|
||||||
, pyahocorasick
|
, pyahocorasick
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, requests
|
, requests
|
||||||
|
@ -37,17 +37,12 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
mock
|
mock
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
responses
|
responses
|
||||||
unidiff
|
unidiff
|
||||||
pkgs.gitMinimal
|
pkgs.gitMinimal
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
# Pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$(mktemp -d);
|
export HOME=$(mktemp -d);
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -39,11 +39,6 @@ buildPythonPackage rec {
|
||||||
pytest-mock
|
pytest-mock
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
# pytest.PytestRemovedIn8Warning: Passing None has been deprecated.
|
|
||||||
"-W ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Test for Windows32
|
# Test for Windows32
|
||||||
"test_print_subprocess"
|
"test_print_subprocess"
|
||||||
|
|
|
@ -27,6 +27,11 @@ buildPythonPackage rec {
|
||||||
pythonRelaxDepsHook
|
pythonRelaxDepsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonRelaxDeps = [
|
||||||
|
"packaging"
|
||||||
|
"structlog"
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
colorama
|
colorama
|
||||||
packaging
|
packaging
|
||||||
|
@ -35,10 +40,6 @@ buildPythonPackage rec {
|
||||||
structlog
|
structlog
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
|
||||||
"structlog"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"diffsync"
|
"diffsync"
|
||||||
];
|
];
|
||||||
|
|
|
@ -6,22 +6,22 @@
|
||||||
, djangorestframework
|
, djangorestframework
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytest-django
|
, pytest-django
|
||||||
, python
|
, pytz
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "django-filter";
|
pname = "django-filter";
|
||||||
version = "23.5";
|
version = "24.1";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-Z1g6pDuR/oxJ90qDLZX02EQr5ij9TG1l6fgR9RU6Tlw=";
|
hash = "sha256-ZctDzicgd+Wsaq4QVNdsEhzWtVLilqgqE5Iek3G6+ME=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ flit-core ];
|
build-system = [ flit-core ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ django ];
|
dependencies = [ django ];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"django_filters"
|
"django_filters"
|
||||||
|
@ -31,6 +31,7 @@ buildPythonPackage rec {
|
||||||
djangorestframework
|
djangorestframework
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-django
|
pytest-django
|
||||||
|
pytz
|
||||||
];
|
];
|
||||||
|
|
||||||
env.DJANGO_SETTINGS_MODULE = "tests.settings";
|
env.DJANGO_SETTINGS_MODULE = "tests.settings";
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, django-guardian
|
, django-guardian
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytest-django
|
, pytest-django
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytz
|
, pytz
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, uritemplate
|
, uritemplate
|
||||||
|
@ -32,7 +32,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytest-django
|
pytest-django
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
|
|
||||||
# optional tests
|
# optional tests
|
||||||
coreapi
|
coreapi
|
||||||
|
@ -41,11 +41,6 @@ buildPythonPackage rec {
|
||||||
uritemplate
|
uritemplate
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
# ytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "rest_framework" ];
|
pythonImportsCheck = [ "rest_framework" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, autoconf
|
, autoconf
|
||||||
, cython
|
, cython_0
|
||||||
, setuptools
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoconf
|
autoconf
|
||||||
cython
|
cython_0
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
{ lib, fetchPypi, buildPythonPackage }:
|
{ lib, fetchPypi, buildPythonPackage, pythonAtLeast }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ed25519";
|
pname = "ed25519";
|
||||||
version = "1.5";
|
version = "1.5";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
|
# last commit in 2019, various compat issues with 3.12
|
||||||
|
disabled = pythonAtLeast "3.12";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0n1k83ww0pr4q6z0h7p8hvy21hcgb96jvgllfbwhvvyf37h3w182";
|
sha256 = "0n1k83ww0pr4q6z0h7p8hvy21hcgb96jvgllfbwhvvyf37h3w182";
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, cython_3
|
, cython
|
||||||
, pdm-backend
|
, pdm-backend
|
||||||
, setuptools
|
, setuptools
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
pdm-backend
|
pdm-backend
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
|
||||||
, setuptools
|
, setuptools
|
||||||
, cython_3
|
, cython
|
||||||
|
|
||||||
, symspellpy
|
, symspellpy
|
||||||
, numpy
|
, numpy
|
||||||
|
@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
build-system = [
|
build-system = [
|
||||||
setuptools
|
setuptools
|
||||||
cython_3
|
cython
|
||||||
];
|
];
|
||||||
|
|
||||||
# error: infinite recursion encountered
|
# error: infinite recursion encountered
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
|
||||||
# build
|
# build
|
||||||
, cython_3
|
, cython
|
||||||
, setuptools
|
, setuptools
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
|
@ -17,8 +17,7 @@
|
||||||
, mujson
|
, mujson
|
||||||
, orjson
|
, orjson
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest_7
|
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, rapidjson
|
, rapidjson
|
||||||
, requests
|
, requests
|
||||||
|
@ -44,7 +43,7 @@ buildPythonPackage rec {
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools
|
setuptools
|
||||||
] ++ lib.optionals (!isPyPy) [
|
] ++ lib.optionals (!isPyPy) [
|
||||||
cython_3
|
cython
|
||||||
];
|
];
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
@ -61,7 +60,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
# https://github.com/falconry/falcon/blob/master/requirements/tests
|
# https://github.com/falconry/falcon/blob/master/requirements/tests
|
||||||
(pytestCheckHook.override { pytest = pytest_7; })
|
pytest7CheckHook
|
||||||
pyyaml
|
pyyaml
|
||||||
requests
|
requests
|
||||||
rapidjson
|
rapidjson
|
||||||
|
|
|
@ -2,13 +2,14 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch2
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fastjsonschema";
|
pname = "fastjsonschema";
|
||||||
version = "2.18.1";
|
version = "2.19.1";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
@ -18,17 +19,21 @@ buildPythonPackage rec {
|
||||||
repo = "python-fastjsonschema";
|
repo = "python-fastjsonschema";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
hash = "sha256-t6JnqQgsWAL8oL8+LO0xrXMYsZOlTF3DlXkRiqUzYtU=";
|
hash = "sha256-UxcxVB4ldnGAYJKWEccivon1CwZD588mNiVJOJPNeN8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch2 {
|
||||||
|
name = "fastjsonschema-pytest8-compat.patch";
|
||||||
|
url = "https://github.com/horejsek/python-fastjsonschema/commit/efc04daf4124a598182dfcfd497615cd1e633d18.patch";
|
||||||
|
hash = "sha256-G1/PIpdN+KFfRP9pUFf/ANXLq3mzrocEHyBNWQMVOZM=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
dontUseSetuptoolsCheck = true;
|
dontUseSetuptoolsCheck = true;
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, beautifulsoup4
|
, beautifulsoup4
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, requests
|
, requests
|
||||||
, requests-mock
|
, requests-mock
|
||||||
|
@ -30,14 +30,10 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
requests-mock
|
requests-mock
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"favicon"
|
"favicon"
|
||||||
];
|
];
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cython_3
|
, cython
|
||||||
, gdal
|
, gdal
|
||||||
, oldest-supported-numpy
|
, oldest-supported-numpy
|
||||||
, setuptools
|
, setuptools
|
||||||
|
@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
gdal # for gdal-config
|
gdal # for gdal-config
|
||||||
oldest-supported-numpy
|
oldest-supported-numpy
|
||||||
setuptools
|
setuptools
|
||||||
|
|
|
@ -1,20 +1,25 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, setuptools
|
||||||
, mock
|
, mock
|
||||||
, pytest
|
, pytest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "flaky";
|
pname = "flaky";
|
||||||
version = "3.7.0";
|
version = "3.8.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-OtEAeAchoZEfV6FlgJt+omWnhjMFrLZnCCIIIMr4qg0=";
|
hash = "sha256-RyBKgeyQXz1az71h2uq8raj51AMWFtm8sGGEYXKWmfU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
mock
|
mock
|
||||||
pytest
|
pytest
|
||||||
|
@ -29,6 +34,7 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
changelog = "https://github.com/box/flaky/blob/v${version}/HISTORY.rst";
|
||||||
homepage = "https://github.com/box/flaky";
|
homepage = "https://github.com/box/flaky";
|
||||||
description = "Plugin for nose or py.test that automatically reruns flaky tests";
|
description = "Plugin for nose or py.test that automatically reruns flaky tests";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
|
|
@ -36,9 +36,10 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
"websockets"
|
|
||||||
"cookiecutter"
|
"cookiecutter"
|
||||||
|
"packaging"
|
||||||
"watchdog"
|
"watchdog"
|
||||||
|
"websockets"
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|
|
@ -3,32 +3,33 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, poetry-core
|
||||||
, teamcity-messages
|
, teamcity-messages
|
||||||
, testtools
|
, testtools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "flexmock";
|
pname = "flexmock";
|
||||||
version = "0.11.3";
|
version = "0.12.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-sf419qXzJUe1zTGhXAYNmrhj3Aiv8BjNc9x40bZR7dQ=";
|
hash = "sha256-YdBvPRRCuBW3qoWh9HvoONBW9fXRTO/teuv7A0c9FKs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
teamcity-messages
|
teamcity-messages
|
||||||
testtools
|
testtools
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
"test_failed_test_case"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"flexmock"
|
"flexmock"
|
||||||
];
|
];
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, lz4
|
, lz4
|
||||||
, msgpack
|
, msgpack
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest_7
|
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, setuptools
|
, setuptools
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
|
@ -52,7 +51,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
(pytestCheckHook.override { pytest = pytest_7; })
|
pytest7CheckHook
|
||||||
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
|
|
@ -21,8 +21,7 @@
|
||||||
, xattr
|
, xattr
|
||||||
, skia-pathops
|
, skia-pathops
|
||||||
, uharfbuzz
|
, uharfbuzz
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest_7
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -65,7 +64,7 @@ buildPythonPackage rec {
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
# test suite fails with pytest>=8.0.1
|
# test suite fails with pytest>=8.0.1
|
||||||
# https://github.com/fonttools/fonttools/issues/3458
|
# https://github.com/fonttools/fonttools/issues/3458
|
||||||
(pytestCheckHook.override { pytest = pytest_7; })
|
pytest7CheckHook
|
||||||
] ++ lib.concatLists (lib.attrVals ([
|
] ++ lib.concatLists (lib.attrVals ([
|
||||||
"woff"
|
"woff"
|
||||||
# "interpolatable" is not included because it only contains 2 tests at the time of writing but adds 270 extra dependencies
|
# "interpolatable" is not included because it only contains 2 tests at the time of writing but adds 270 extra dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# build-system
|
# build-system
|
||||||
, cysignals
|
, cysignals
|
||||||
, cython_3
|
, cython
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, setuptools
|
, setuptools
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
cysignals
|
cysignals
|
||||||
pkgconfig
|
pkgconfig
|
||||||
setuptools
|
setuptools
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cython_3
|
, cython
|
||||||
, expandvars
|
, expandvars
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pep517
|
, pep517
|
||||||
|
@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
expandvars
|
expandvars
|
||||||
cython_3
|
cython
|
||||||
pep517
|
pep517
|
||||||
setuptools
|
setuptools
|
||||||
wheel
|
wheel
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cython
|
, cython_0
|
||||||
, mecab
|
, mecab
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, ipadic
|
, ipadic
|
||||||
|
@ -24,7 +24,7 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-4i7Q+TtXTQNSJ1EIcS8KHrVPdCJAgZh86Y6lB8772XU=";
|
hash = "sha256-4i7Q+TtXTQNSJ1EIcS8KHrVPdCJAgZh86Y6lB8772XU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cython mecab setuptools-scm ];
|
nativeBuildInputs = [ cython_0 mecab setuptools-scm ];
|
||||||
|
|
||||||
nativeCheckInputs = [ ipadic pytestCheckHook ]
|
nativeCheckInputs = [ ipadic pytestCheckHook ]
|
||||||
++ passthru.optional-dependencies.unidic-lite;
|
++ passthru.optional-dependencies.unidic-lite;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cython
|
, cython_0
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, libgbinder
|
, libgbinder
|
||||||
}:
|
}:
|
||||||
|
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython
|
cython_0
|
||||||
pkg-config
|
pkg-config
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, python
|
, python
|
||||||
, libev
|
, libev
|
||||||
, cffi
|
, cffi
|
||||||
, cython_3
|
, cython
|
||||||
, greenlet
|
, greenlet
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
, setuptools
|
, setuptools
|
||||||
|
@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
setuptools
|
setuptools
|
||||||
wheel
|
wheel
|
||||||
] ++ lib.optionals (!isPyPy) [
|
] ++ lib.optionals (!isPyPy) [
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonAtLeast
|
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
|
||||||
|
@ -17,7 +16,7 @@
|
||||||
, py
|
, py
|
||||||
, pytest-django
|
, pytest-django
|
||||||
, pytest-random-order
|
, pytest-random-order
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -58,20 +57,15 @@ buildPythonPackage rec {
|
||||||
py
|
py
|
||||||
pytest-django
|
pytest-django
|
||||||
pytest-random-order
|
pytest-random-order
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
disabledTests = [
|
||||||
# pytest.PytestRemovedIn8Warning: Passing None has been deprecated.
|
# https://github.com/graphql-python/graphene-django/issues/1510
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
"test_should_filepath_convert_string"
|
||||||
];
|
"test_should_choice_convert_enum"
|
||||||
|
"test_should_multiplechoicefield_convert_to_list_of_enum"
|
||||||
disabledTests = lib.optionals (pythonAtLeast "3.11") [
|
"test_perform_mutate_success_with_enum_choice_field"
|
||||||
# Python 3.11 support, https://github.com/graphql-python/graphene-django/pull/1365
|
|
||||||
"test_django_objecttype_convert_choices_enum_naming_collisions"
|
|
||||||
"test_django_objecttype_choices_custom_enum_name"
|
|
||||||
"test_django_objecttype_convert_choices_enum_list"
|
|
||||||
"test_schema_representation"
|
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
# this test touches files in the "/" directory and fails in darwin sandbox
|
# this test touches files in the "/" directory and fails in darwin sandbox
|
||||||
"test_should_filepath_convert_string"
|
"test_should_filepath_convert_string"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytest-benchmark
|
, pytest-benchmark
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytz
|
, pytz
|
||||||
, snapshottest
|
, snapshottest
|
||||||
|
@ -39,7 +39,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytest-benchmark
|
pytest-benchmark
|
||||||
pytest-mock
|
pytest-mock
|
||||||
|
@ -49,7 +49,6 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--benchmark-disable"
|
"--benchmark-disable"
|
||||||
"-W ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
, wheel
|
, wheel
|
||||||
, numpy
|
, numpy
|
||||||
, hdf5
|
, hdf5
|
||||||
, cython
|
, cython_0
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, mpi4py ? null
|
, mpi4py ? null
|
||||||
, openssh
|
, openssh
|
||||||
|
@ -50,7 +50,7 @@ in buildPythonPackage rec {
|
||||||
preBuild = lib.optionalString mpiSupport "export CC=${lib.getDev mpi}/bin/mpicc";
|
preBuild = lib.optionalString mpiSupport "export CC=${lib.getDev mpi}/bin/mpicc";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython
|
cython_0
|
||||||
oldest-supported-numpy
|
oldest-supported-numpy
|
||||||
pkgconfig
|
pkgconfig
|
||||||
setuptools
|
setuptools
|
||||||
|
|
|
@ -20,13 +20,13 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "hatchling";
|
pname = "hatchling";
|
||||||
version = "1.21.1";
|
version = "1.22.4";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-u6RARToiTn1EeEV/oujYw2M3Zbr6Apdaa1O5v5F5gLw=";
|
hash = "sha256-ii3OyW1/uEg4LvWEjlrEP9rmQfNaCKP6tRFr1JXzQW4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# listed in backend/pyproject.toml
|
# listed in backend/pyproject.toml
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, setuptools
|
, setuptools
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, hypothesis
|
, hypothesis
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -21,14 +21,10 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
hypothesis
|
hypothesis
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "hid_parser" ];
|
pythonImportsCheck = [ "hid_parser" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, xcbuild
|
, xcbuild
|
||||||
, cython
|
, cython_0
|
||||||
, libusb1
|
, libusb1
|
||||||
, udev
|
, udev
|
||||||
, darwin
|
, darwin
|
||||||
|
@ -19,10 +19,10 @@ buildPythonPackage rec {
|
||||||
sha256 = "a7cb029286ced5426a381286526d9501846409701a29c2538615c3d1a612b8be";
|
sha256 = "a7cb029286ced5426a381286526d9501846409701a29c2538615c3d1a612b8be";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = lib.optionals stdenv.isDarwin [ xcbuild ];
|
nativeBuildInputs = [ cython_0 ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ xcbuild ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ cython ]
|
propagatedBuildInputs = lib.optionals stdenv.isLinux [ libusb1 udev ]
|
||||||
++ lib.optionals stdenv.isLinux [ libusb1 udev ]
|
|
||||||
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit CoreFoundation IOKit ]);
|
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit CoreFoundation IOKit ]);
|
||||||
|
|
||||||
# Fix the USB backend library lookup
|
# Fix the USB backend library lookup
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
, async-timeout
|
, async-timeout
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest_7
|
|
||||||
, pythonAtLeast
|
, pythonAtLeast
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytest-aiohttp
|
, pytest-aiohttp
|
||||||
|
@ -50,7 +49,7 @@ buildPythonPackage rec {
|
||||||
aiohttp-wsgi
|
aiohttp-wsgi
|
||||||
pytest-aiohttp
|
pytest-aiohttp
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
(pytestCheckHook.override { pytest = pytest_7; })
|
pytest7CheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "hypothesis";
|
pname = "hypothesis";
|
||||||
version = "6.98.17";
|
version = "6.99.12";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
@ -31,7 +31,7 @@ buildPythonPackage rec {
|
||||||
owner = "HypothesisWorks";
|
owner = "HypothesisWorks";
|
||||||
repo = "hypothesis";
|
repo = "hypothesis";
|
||||||
rev = "hypothesis-python-${version}";
|
rev = "hypothesis-python-${version}";
|
||||||
hash = "sha256-2knFmaa334vFo8bbLCmrWAXRDXFcC+GPRqj7RG3FqEQ=";
|
hash = "sha256-0nzjRDv4L3bxxnC0lBY5S7FP9CFhyzHzNchWXoX91Zg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# I tried to package sphinx-selective-exclude, but it throws
|
# I tried to package sphinx-selective-exclude, but it throws
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cython_3
|
, cython
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, future
|
, future
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
hatchling
|
hatchling
|
||||||
hatch-vcs
|
hatch-vcs
|
||||||
];
|
];
|
||||||
|
|
|
@ -22,8 +22,7 @@
|
||||||
# Test dependencies
|
# Test dependencies
|
||||||
, pickleshare
|
, pickleshare
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest_7
|
|
||||||
, testpath
|
, testpath
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -72,7 +71,7 @@ buildPythonPackage rec {
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pickleshare
|
pickleshare
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
(pytestCheckHook.override { pytest = pytest_7; })
|
pytest7CheckHook
|
||||||
testpath
|
testpath
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
, jsonschema
|
, jsonschema
|
||||||
, jupyterlab-widgets
|
, jupyterlab-widgets
|
||||||
, lib
|
, lib
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytz
|
, pytz
|
||||||
, traitlets
|
, traitlets
|
||||||
, widgetsnbextension
|
, widgetsnbextension
|
||||||
|
@ -40,15 +40,10 @@ buildPythonPackage rec {
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
ipykernel
|
ipykernel
|
||||||
jsonschema
|
jsonschema
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
pytz
|
pytz
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
# pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "IPython HTML widgets for Jupyter";
|
description = "IPython HTML widgets for Jupyter";
|
||||||
homepage = "https://github.com/jupyter-widgets/ipywidgets";
|
homepage = "https://github.com/jupyter-widgets/ipywidgets";
|
||||||
|
|
|
@ -52,8 +52,6 @@ buildPythonPackage rec {
|
||||||
"--ignore=tests/benchmark/" # requires pytest-benchmark
|
"--ignore=tests/benchmark/" # requires pytest-benchmark
|
||||||
"--ignore=tests/integration/" # pulls in 10 other packages
|
"--ignore=tests/integration/" # pulls in 10 other packages
|
||||||
"--ignore=tests/unit/profiles/test_black.py" # causes infinite recursion to include black
|
"--ignore=tests/unit/profiles/test_black.py" # causes infinite recursion to include black
|
||||||
# pytest.PytestRemovedIn8Warning: Passing None has been deprecated.
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
@ -74,6 +72,8 @@ buildPythonPackage rec {
|
||||||
"test_value_assignment_list"
|
"test_value_assignment_list"
|
||||||
# profiles not available
|
# profiles not available
|
||||||
"test_isort_supports_shared_profiles_issue_970"
|
"test_isort_supports_shared_profiles_issue_970"
|
||||||
|
# https://github.com/PyCQA/isort/issues/2234
|
||||||
|
"test_isort_should_warn_on_empty_custom_config_issue_1433"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, numpy
|
, numpy
|
||||||
, pandas
|
, pandas
|
||||||
, pytz
|
, pytz
|
||||||
|
@ -26,11 +26,7 @@ buildPythonPackage rec {
|
||||||
numpy
|
numpy
|
||||||
pandas
|
pandas
|
||||||
pytz
|
pytz
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
];
|
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, buildPythonPackage, fetchFromGitHub, fetchpatch
|
, buildPythonPackage, fetchFromGitHub, fetchpatch
|
||||||
, pkg-config, cython, docutils
|
, pkg-config, cython_0, docutils
|
||||||
, kivy-garden
|
, kivy-garden
|
||||||
, mesa, mtdev, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer
|
, mesa, mtdev, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer
|
||||||
, Accelerate, ApplicationServices, AVFoundation, libcxx
|
, Accelerate, ApplicationServices, AVFoundation, libcxx
|
||||||
|
@ -31,7 +31,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
cython
|
cython_0
|
||||||
docutils
|
docutils
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
, pycurl
|
, pycurl
|
||||||
, pymongo
|
, pymongo
|
||||||
#, pyro4
|
#, pyro4
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, redis
|
, redis
|
||||||
|
@ -89,14 +89,9 @@ buildPythonPackage rec {
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
case
|
case
|
||||||
hypothesis
|
hypothesis
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
# pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"kombu"
|
"kombu"
|
||||||
];
|
];
|
||||||
|
|
|
@ -36,6 +36,11 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-NKrxv5a5gkgpNG7yViTKYBYnU249taWl6fkPJa7/Rzo=";
|
hash = "sha256-NKrxv5a5gkgpNG7yViTKYBYnU249taWl6fkPJa7/Rzo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace ./kubernetes/base/config/kube_config_test.py \
|
||||||
|
--replace-fail assertEquals assertEqual
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
adal
|
adal
|
||||||
certifi
|
certifi
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "langchain-core";
|
pname = "langchain-core";
|
||||||
version = "0.1.32";
|
version = "0.1.33";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
@ -24,11 +24,12 @@ buildPythonPackage rec {
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "langchain_core";
|
pname = "langchain_core";
|
||||||
inherit version;
|
inherit version;
|
||||||
hash = "sha256-1iaDvsvyD1HxKHV5GgQjIPReqgyHomfTC8A7waB/XsI=";
|
hash = "sha256-VF7/Peg8xYIxvSsMbWcjI/wgd7lNMmuhoyGRGK8dGmY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
"langsmith"
|
"langsmith"
|
||||||
|
"packaging"
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cmake
|
, cmake
|
||||||
, cython_3
|
, cython
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
@ -28,7 +28,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
cython_3
|
cython
|
||||||
scikit-build
|
scikit-build
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cmake
|
, cmake
|
||||||
, cython
|
, cython_0
|
||||||
, numpy
|
, numpy
|
||||||
, six
|
, six
|
||||||
, nose
|
, nose
|
||||||
|
@ -67,13 +67,13 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
|
cython_0
|
||||||
] ++ lib.optionals cudaSupport [
|
] ++ lib.optionals cudaSupport [
|
||||||
addOpenGLRunpath
|
addOpenGLRunpath
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cython
|
|
||||||
nose
|
nose
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytest-xdist
|
, pytest-xdist
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, setuptools
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
@ -27,12 +27,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
pytestCheckHook
|
pytest7CheckHook
|
||||||
];
|
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
# pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
|
|
||||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
, pytest-timeout
|
, pytest-timeout
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest_7
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -42,7 +41,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytest-timeout
|
pytest-timeout
|
||||||
(pytestCheckHook.override { pytest = pytest_7; })
|
pytest7CheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "limits";
|
pname = "limits";
|
||||||
version = "3.9.0";
|
version = "3.10.1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
@ -37,7 +37,7 @@ buildPythonPackage rec {
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
rm "$out/limits/_version.py"
|
rm "$out/limits/_version.py"
|
||||||
'';
|
'';
|
||||||
hash = "sha256-X4nf9ifhJjTNKnQuAxRNK9j/MzfAC58kv+19zMWtKg8=";
|
hash = "sha256-Ax0P9rYTPOrhtOw7FLElSNTGQ3WWCboM3FodTOGZWu8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, cython_3
|
, cython
|
||||||
, isPyPy
|
, isPyPy
|
||||||
, ipython
|
, ipython
|
||||||
, scikit-build
|
, scikit-build
|
||||||
|
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython_3
|
cython
|
||||||
cmake
|
cmake
|
||||||
scikit-build
|
scikit-build
|
||||||
];
|
];
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cython_3
|
, cython
|
||||||
, fuse
|
, fuse
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-6/iW5eHmX6ODVPLFkOo3bN9yW8ixqy2MHwQ2r9FA0iI=";
|
hash = "sha256-6/iW5eHmX6ODVPLFkOo3bN9yW8ixqy2MHwQ2r9FA0iI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cython_3 pkg-config setuptools ];
|
nativeBuildInputs = [ cython pkg-config setuptools ];
|
||||||
|
|
||||||
buildInputs = [ fuse ];
|
buildInputs = [ fuse ];
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, pythonAtLeast
|
||||||
, toolz
|
, toolz
|
||||||
, multipledispatch
|
, multipledispatch
|
||||||
, py
|
, py
|
||||||
|
@ -33,6 +34,11 @@ buildPythonPackage rec {
|
||||||
pytest-benchmark # Needed for the `--benchmark-skip` flag
|
pytest-benchmark # Needed for the `--benchmark-skip` flag
|
||||||
];
|
];
|
||||||
|
|
||||||
|
disabledTests = lib.optionals (pythonAtLeast "3.12") [
|
||||||
|
# Failed: DID NOT RAISE <class 'RecursionError'>
|
||||||
|
"test_reify_recursion_limit"
|
||||||
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--benchmark-skip"
|
"--benchmark-skip"
|
||||||
"--html=testing-report.html"
|
"--html=testing-report.html"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cython_3
|
, cython
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, setuptools
|
, setuptools
|
||||||
|
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = [
|
build-system = [
|
||||||
cython_3
|
cython
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user