Merge pull request #244135 from NixOS/python-updates
Python updates 2023-07-18
This commit is contained in:
@@ -1185,11 +1185,12 @@ following are specific to `buildPythonPackage`:
|
||||
variables which will be available when the binary is run. For example,
|
||||
`makeWrapperArgs = ["--set FOO BAR" "--set BAZ QUX"]`.
|
||||
* `namePrefix`: Prepends text to `${name}` parameter. In case of libraries, this
|
||||
defaults to `"python3.8-"` for Python 3.8, etc., and in case of applications
|
||||
to `""`.
|
||||
defaults to `"python3.8-"` for Python 3.8, etc., and in case of applications to `""`.
|
||||
* `pipInstallFlags ? []`: A list of strings. Arguments to be passed to `pip
|
||||
install`. To pass options to `python setup.py install`, use
|
||||
`--install-option`. E.g., `pipInstallFlags=["--install-option='--cpp_implementation'"]`.
|
||||
* `pipBuildFlags ? []`: A list of strings. Arguments to be passed to `pip wheel`.
|
||||
* `pypaBuildFlags ? []`: A list of strings. Arguments to be passed to `python -m build --wheel`.
|
||||
* `pythonPath ? []`: List of packages to be added into `$PYTHONPATH`. Packages
|
||||
in `pythonPath` are not propagated (contrary to `propagatedBuildInputs`).
|
||||
* `preShellHook`: Hook to execute commands before `shellHook`.
|
||||
@@ -1244,6 +1245,27 @@ with import <nixpkgs> {};
|
||||
in python.withPackages(ps: [ ps.blaze ])).env
|
||||
```
|
||||
|
||||
The next example shows a non trivial overriding of the `blas` implementation to
|
||||
be used through out all of the Python package set:
|
||||
|
||||
```nix
|
||||
python3MyBlas = pkgs.python3.override {
|
||||
packageOverrides = self: super: {
|
||||
# We need toPythonModule for the package set to evaluate this
|
||||
blas = super.toPythonModule(super.pkgs.blas.override {
|
||||
blasProvider = super.pkgs.mkl;
|
||||
});
|
||||
lapack = super.toPythonModule(super.pkgs.lapack.override {
|
||||
lapackProvider = super.pkgs.mkl;
|
||||
});
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
This is particularly useful for numpy and scipy users who want to gain speed with other blas implementations.
|
||||
Note that using simply `scipy = super.scipy.override { blas = super.pkgs.mkl; };` will likely result in
|
||||
compilation issues, because scipy dependencies need to use the same blas implementation as well.
|
||||
|
||||
#### Optional extra dependencies {#python-optional-dependencies}
|
||||
|
||||
Some packages define optional dependencies for additional features. With
|
||||
@@ -1463,6 +1485,10 @@ are used in `buildPythonPackage`.
|
||||
- `flitBuildHook` to build a wheel using `flit`.
|
||||
- `pipBuildHook` to build a wheel using `pip` and PEP 517. Note a build system
|
||||
(e.g. `setuptools` or `flit`) should still be added as `nativeBuildInput`.
|
||||
- `pypaBuildHook` to build a wheel using
|
||||
[`pypa/build`](https://pypa-build.readthedocs.io/en/latest/index.html) and
|
||||
PEP 517/518. Note a build system (e.g. `setuptools` or `flit`) should still
|
||||
be added as `nativeBuildInput`.
|
||||
- `pipInstallHook` to install wheels.
|
||||
- `pytestCheckHook` to run tests with `pytest`. See [example usage](#using-pytestcheckhook).
|
||||
- `pythonCatchConflictsHook` to check whether a Python package is not already existing.
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
{ lib
|
||||
, python3
|
||||
, fetchPypi
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonPackage rec {
|
||||
pname = "ledfx";
|
||||
version = "2.0.67";
|
||||
version = "2.0.69";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-lFxAMjglQZXCySr83PtvStU6hw2ucQu+rSjIHo1yZBk=";
|
||||
hash = "sha256-gkO6XYiPMkU/zRLvc0yd3jJXVcAgAkR1W1ELTSN461o=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -52,7 +52,7 @@ python3.pkgs.buildPythonPackage rec {
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "LedFx is a network based LED effect controller with support for advanced real-time audio effects";
|
||||
description = "Network based LED effect controller with support for advanced real-time audio effects";
|
||||
homepage = "https://github.com/LedFx/LedFx";
|
||||
changelog = "https://github.com/LedFx/LedFx/blob/${version}/CHANGELOG.rst";
|
||||
license = licenses.gpl3Only;
|
||||
|
||||
@@ -62,6 +62,16 @@ in {
|
||||
};
|
||||
} ./pip-build-hook.sh) {};
|
||||
|
||||
pypaBuildHook = callPackage ({ makePythonHook, build, wheel }:
|
||||
makePythonHook {
|
||||
name = "pypa-build-hook.sh";
|
||||
propagatedBuildInputs = [ build wheel ];
|
||||
substitutions = {
|
||||
inherit pythonInterpreter;
|
||||
};
|
||||
} ./pypa-build-hook.sh) {};
|
||||
|
||||
|
||||
pipInstallHook = callPackage ({ makePythonHook, pip }:
|
||||
makePythonHook {
|
||||
name = "pip-install-hook";
|
||||
|
||||
@@ -1,13 +1,22 @@
|
||||
# Setup hook to use for pip projects
|
||||
echo "Sourcing pip-build-hook"
|
||||
|
||||
declare -a pipBuildFlags
|
||||
|
||||
pipBuildPhase() {
|
||||
echo "Executing pipBuildPhase"
|
||||
runHook preBuild
|
||||
|
||||
mkdir -p dist
|
||||
echo "Creating a wheel..."
|
||||
@pythonInterpreter@ -m pip wheel --verbose --no-index --no-deps --no-clean --no-build-isolation --wheel-dir dist .
|
||||
@pythonInterpreter@ -m pip wheel \
|
||||
--verbose \
|
||||
--no-index \
|
||||
--no-deps \
|
||||
--no-clean \
|
||||
--no-build-isolation \
|
||||
--wheel-dir dist \
|
||||
$pipBuildFlags .
|
||||
echo "Finished creating a wheel..."
|
||||
|
||||
runHook postBuild
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
# Setup hook to use for pypa/build projects
|
||||
echo "Sourcing pypa-build-hook"
|
||||
|
||||
pypaBuildPhase() {
|
||||
echo "Executing pypaBuildPhase"
|
||||
runHook preBuild
|
||||
|
||||
echo "Creating a wheel..."
|
||||
@pythonInterpreter@ -m build --no-isolation --outdir dist/ --wheel $pypaBuildFlags
|
||||
echo "Finished creating a wheel..."
|
||||
|
||||
runHook postBuild
|
||||
echo "Finished executing pypaBuildPhase"
|
||||
}
|
||||
|
||||
if [ -z "${dontUsePypaBuild-}" ] && [ -z "${buildPhase-}" ]; then
|
||||
echo "Using pypaBuildPhase"
|
||||
buildPhase=pypaBuildPhase
|
||||
fi
|
||||
@@ -7,13 +7,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "rapidfuzz-cpp";
|
||||
version = "1.11.3";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "maxbachmann";
|
||||
repo = "rapidfuzz-cpp";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-Qqdw5dy+JUBSDpbWEh3Ap3+3h+CcNdfBL+rloRzWGEQ=";
|
||||
hash = "sha256-gLiITRCxX3nkzrlvU1/ZPxEo2v7q79/MwrnURUjrY28=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -8,13 +8,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "taskflow";
|
||||
version = "3.5.0";
|
||||
version = "3.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "taskflow";
|
||||
repo = "taskflow";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-UUWJENGn60YQdUSQ55uL+/3xt/JUsVuKnqm/ef7wPVM=";
|
||||
hash = "sha256-Iy9BhkyJa2nFxwVXb4LAlgVAHnu+58Ago2eEgAIlZ7M=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -11,7 +11,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
cmakeFlags = [ "-DBUILD_TESTS=ON" ];
|
||||
cmakeFlags = [
|
||||
"-DBUILD_TESTS=${if (doCheck && stdenv.hostPlatform == stdenv.buildPlatform) then "ON" else "OFF"}"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
nativeCheckInputs = [ gtest ];
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, asgiref
|
||||
, httpx
|
||||
, pdm-backend
|
||||
, pdm-pep517
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "a2wsgi";
|
||||
version = "1.7.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-qQb2LAJQ6wIBEguTQX3QsSsQW12zWvQxv+hu8NxburI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pdm-backend
|
||||
pdm-pep517
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
asgiref
|
||||
httpx
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convert WSGI app to ASGI app or ASGI app to WSGI app";
|
||||
homepage = "https://github.com/abersheeran/a2wsgi";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
@@ -101,6 +101,10 @@ buildPythonPackage rec {
|
||||
"test_async_with_session"
|
||||
"test_session_close_awaitable"
|
||||
"test_close_run_until_complete_not_deprecated"
|
||||
# https://github.com/aio-libs/aiohttp/issues/7130
|
||||
"test_static_file_if_none_match"
|
||||
"test_static_file_if_match"
|
||||
"test_static_file_if_modified_since_past_date"
|
||||
] ++ lib.optionals stdenv.is32bit [
|
||||
"test_cookiejar"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
|
||||
@@ -28,6 +28,9 @@ buildPythonPackage rec {
|
||||
hash = "sha256-7Ta0BhtQSm228vvUa5z+pzM3UC7+BskgBNjxsbEb9P0=";
|
||||
};
|
||||
|
||||
# https://github.com/bamthomas/aioimaplib/issues/54
|
||||
doCheck = pythonOlder "3.11";
|
||||
|
||||
nativeCheckInputs = [
|
||||
asynctest
|
||||
docutils
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astroid";
|
||||
version = "2.14.2"; # Check whether the version is compatible with pylint
|
||||
version = "2.15.6"; # Check whether the version is compatible with pylint
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7.2";
|
||||
@@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||
owner = "PyCQA";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-SIBzn57UNn/sLuDWt391M/kcCyjCocHmL5qi2cSX2iA=";
|
||||
hash = "sha256-0oNNEVD8rYGkM11nGUD+XMwE7xgk7mJIaplrAXaECFg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
, setuptools
|
||||
|
||||
# runtime
|
||||
, ffmpeg
|
||||
, ffmpeg-headless
|
||||
|
||||
# tests
|
||||
, numpy
|
||||
@@ -38,7 +38,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
ffmpeg
|
||||
ffmpeg-headless
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
|
||||
@@ -10,25 +10,26 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "boto3";
|
||||
version = "1.26.79"; # N.B: if you change this, change botocore and awscli to a matching version
|
||||
version = "1.28.9"; # N.B: if you change this, change botocore and awscli to a matching version
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "boto";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-9Xsng4xZ+IGNZ3ViYVrOyKZdRH6QPSjZALj9Q3HECBU=";
|
||||
hash = "sha256-NkNHA20yn1Q7uoq/EL1Wn8F1fpi1waQujutGIKsnxlI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
botocore
|
||||
jmespath
|
||||
s3transfer
|
||||
setuptools
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
, fetchPypi
|
||||
, python-dateutil
|
||||
, jmespath
|
||||
, docutils
|
||||
, urllib3
|
||||
, pytestCheckHook
|
||||
, jsonschema
|
||||
@@ -11,17 +10,17 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "botocore";
|
||||
version = "1.29.79"; # N.B: if you change this, change boto3 and awscli to a matching version
|
||||
version = "1.31.9"; # N.B: if you change this, change boto3 and awscli to a matching version
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-x97UQGK+07kolEz7CeFXjtP+0OTJjeTyM/PCBWqNSR4=";
|
||||
hash = "sha256-vYSdOslfF4E4Xtgx11OgSj7IcKWdZZgXWq7dcdwrr18=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python-dateutil
|
||||
jmespath
|
||||
docutils
|
||||
urllib3
|
||||
];
|
||||
|
||||
@@ -30,8 +29,6 @@ buildPythonPackage rec {
|
||||
jsonschema
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
disabledTestPaths = [
|
||||
# Integration tests require networking
|
||||
"tests/integration"
|
||||
|
||||
@@ -8,27 +8,28 @@
|
||||
, makeFontsConf
|
||||
, freefont_ttf
|
||||
, pikepdf
|
||||
, pytest
|
||||
, glibcLocales
|
||||
, pytestCheckHook
|
||||
, cairo
|
||||
, cffi
|
||||
, numpy
|
||||
, withXcffib ? false
|
||||
, xcffib
|
||||
, python
|
||||
, glib
|
||||
, gdk-pixbuf
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cairocffi";
|
||||
version = "1.4.0";
|
||||
version = "1.5.1";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-UJM5syzNjXsAwiBMMnNs3njbU6MuahYtMSR40lYmzZo=";
|
||||
hash = "sha256-Bxq3ty41MzALC/1VpSBWtP/cHtbmVneeKs7Ztwm4opU=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -43,36 +44,23 @@ buildPythonPackage rec {
|
||||
./fix_test_scaled_font.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "pytest-runner" "" \
|
||||
--replace "pytest-cov" "" \
|
||||
--replace "pytest-flake8" "" \
|
||||
--replace "pytest-isort" "" \
|
||||
--replace "--flake8 --isort" ""
|
||||
'';
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
# checkPhase require at least one 'normal' font and one 'monospace',
|
||||
# otherwise glyph tests fails
|
||||
FONTCONFIG_FILE = makeFontsConf {
|
||||
fontDirectories = [ freefont_ttf ];
|
||||
};
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedNativeBuildInputs = [ cffi ];
|
||||
|
||||
propagatedBuildInputs = [ cairo cffi ]
|
||||
++ lib.optional withXcffib xcffib;
|
||||
|
||||
# pytestCheckHook does not work
|
||||
nativeCheckInputs = [ numpy pikepdf pytest glibcLocales ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test $out/${python.sitePackages}
|
||||
'';
|
||||
nativeCheckInputs = [
|
||||
numpy
|
||||
pikepdf
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/Kozea/cairocffi/blob/v${version}/NEWS.rst";
|
||||
homepage = "https://github.com/SimonSapin/cairocffi";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ];
|
||||
|
||||
@@ -6,37 +6,43 @@
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "calver";
|
||||
version = "2022.06.26";
|
||||
let
|
||||
self = buildPythonPackage rec {
|
||||
pname = "calver";
|
||||
version = "2022.06.26";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
format = "setuptools";
|
||||
src = fetchFromGitHub {
|
||||
owner = "di";
|
||||
repo = "calver";
|
||||
rev = version;
|
||||
hash = "sha256-YaXTkeUazwzghCX96Wfx39hGvukWKtHMLLeyF9OeiZI=";
|
||||
};
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "di";
|
||||
repo = "calver";
|
||||
rev = version;
|
||||
hash = "sha256-YaXTkeUazwzghCX96Wfx39hGvukWKtHMLLeyF9OeiZI=";
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "version=calver_version(True)" 'version="${version}"'
|
||||
'';
|
||||
|
||||
doCheck = false; # avoid infinite recursion with hatchling
|
||||
|
||||
nativeCheckInputs = [
|
||||
pretend
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "calver" ];
|
||||
|
||||
passthru.tests.calver = self.overridePythonAttrs { doCheck = true; };
|
||||
|
||||
meta = {
|
||||
description = "Setuptools extension for CalVer package versions";
|
||||
homepage = "https://github.com/di/calver";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "version=calver_version(True)" 'version="${version}"'
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pretend
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "calver" ];
|
||||
|
||||
meta = {
|
||||
description = "Setuptools extension for CalVer package versions";
|
||||
homepage = "https://github.com/di/calver";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
in
|
||||
self
|
||||
|
||||
@@ -28,14 +28,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "celery";
|
||||
version = "5.3.0";
|
||||
version = "5.3.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-Hqul7hTYyMC+2PYGPl4Q2r288jUDqGHPDhC3Ih2Zyw0=";
|
||||
hash = "sha256-+E0cIaFSDBFsK30mWTkmWBGRQ1oDqnS3fJQbk8ocYhA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
let
|
||||
pname = "chacha20poly1305-reuseable";
|
||||
version = "0.2.5";
|
||||
version = "0.3.0";
|
||||
in
|
||||
|
||||
buildPythonPackage {
|
||||
@@ -30,7 +30,7 @@ buildPythonPackage {
|
||||
owner = "bdraco";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-T5mmHUMNbdvexeSaIDZIm/3yQcDKnWdor9IK63FE0no=";
|
||||
hash = "sha256-/bXpwSBFr1IM04GNEczzsnsjdFV4miUAzJkvrQjfIq4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||
version = "18.8.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7" || pythonAtLeast "3.11";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "CherryPy";
|
||||
@@ -86,6 +86,20 @@ buildPythonPackage rec {
|
||||
"test_basic_request"
|
||||
"test_3_Redirect"
|
||||
"test_4_File_deletion"
|
||||
] ++ lib.optionals (pythonAtLeast "3.11") [
|
||||
"testErrorHandling"
|
||||
"testHookErrors"
|
||||
"test_HTTP10_KeepAlive"
|
||||
"test_No_Message_Body"
|
||||
"test_HTTP11_Timeout"
|
||||
"testGzip"
|
||||
"test_malformed_header"
|
||||
"test_no_content_length"
|
||||
"test_post_filename_with_special_characters"
|
||||
"test_post_multipart"
|
||||
"test_iterator"
|
||||
"test_1_Ram_Concurrency"
|
||||
"test_2_File_Concurrency"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"test_block"
|
||||
];
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "click";
|
||||
version = "8.1.3";
|
||||
version = "8.1.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-doLcivswKXABZ0V16gDRgU2AjWo2r0Fagr1IHTe6e44=";
|
||||
hash = "sha256-SO6EmVGRlSegRb/jv3uqipWcQjE04aW5jAXCC6daHL0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
||||
|
||||
@@ -23,7 +23,7 @@ let
|
||||
|
||||
pythonImportsCheck = [ "constantly" ];
|
||||
|
||||
passthru.tests.constantly = self.overrideAttrs (_: { doInstallCheck = true; });
|
||||
passthru.tests.constantly = self.overridePythonAttrs { doCheck = true; };
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/twisted/constantly";
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, asynctest
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
@@ -34,7 +33,6 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
asynctest
|
||||
certifi
|
||||
];
|
||||
|
||||
|
||||
@@ -3,25 +3,25 @@
|
||||
, callPackage
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, rustPlatform
|
||||
, cargo
|
||||
, rustc
|
||||
, setuptoolsRustBuildHook
|
||||
, openssl
|
||||
, Security
|
||||
, isPyPy
|
||||
, cffi
|
||||
, hypothesis
|
||||
, iso8601
|
||||
, isPyPy
|
||||
, libiconv
|
||||
, libxcrypt
|
||||
, openssl
|
||||
, pkg-config
|
||||
, pretend
|
||||
, py
|
||||
, pytestCheckHook
|
||||
, pytest-subtests
|
||||
, pythonOlder
|
||||
, pretend
|
||||
, libiconv
|
||||
, libxcrypt
|
||||
, iso8601
|
||||
, py
|
||||
, pytz
|
||||
, hypothesis
|
||||
, rustc
|
||||
, rustPlatform
|
||||
, Security
|
||||
, setuptoolsRustBuildHook
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -29,20 +29,20 @@ let
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "cryptography";
|
||||
version = "40.0.1"; # Also update the hash in vectors.nix
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
version = "41.0.2"; # Also update the hash in vectors.nix
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-KAPy+LHpX2FEGZJsfm9V2CivxhTKXtYVQ4d65mjMNHI=";
|
||||
hash = "sha256-fSML+FYWTeFk7LYVzMFMf8beaQbd1bSR86+Q01FMklw=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
sourceRoot = "${pname}-${version}/${cargoRoot}";
|
||||
name = "${pname}-${version}";
|
||||
hash = "sha256-gFfDTc2QWBWHBCycVH1dYlCsWQMVcRZfOBIau+njtDU=";
|
||||
hash = "sha256-hkuoICa/suMXlr4u95JbMlFzi27lJqJRmWnX3nZfzKU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -100,8 +100,6 @@ buildPythonPackage rec {
|
||||
Cryptography includes both high level recipes and low level interfaces to
|
||||
common cryptographic algorithms such as symmetric ciphers, message
|
||||
digests, and key derivation functions.
|
||||
Our goal is for it to be your "cryptographic standard library". It
|
||||
supports Python 2.7, Python 3.5+, and PyPy 5.4+.
|
||||
'';
|
||||
homepage = "https://github.com/pyca/cryptography";
|
||||
changelog = "https://cryptography.io/en/latest/changelog/#v"
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
{ buildPythonPackage, fetchPypi, lib, cryptography }:
|
||||
{ buildPythonPackage, fetchPypi, lib, cryptography, setuptools }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cryptography-vectors";
|
||||
# The test vectors must have the same version as the cryptography package
|
||||
inherit (cryptography) version;
|
||||
format = "setuptools";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "cryptography_vectors";
|
||||
inherit version;
|
||||
hash = "sha256-hGBwa1tdDOSoVXHKM4nPiPcAu2oMYTPcn+D1ovW9oEE=";
|
||||
hash = "sha256-Ao3/lKhSLKgYsRKV/xLfVfNI8zoZPAWX3f6COeU9FYI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
# No tests included
|
||||
doCheck = false;
|
||||
|
||||
@@ -20,7 +22,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Test vectors for the cryptography package";
|
||||
homepage = "https://cryptography.io/en/latest/development/test-vectors/";
|
||||
# Source: https://github.com/pyca/cryptography/tree/master/vectors;
|
||||
downloadPage = "https://github.com/pyca/cryptography/tree/master/vectors";
|
||||
license = with licenses; [ asl20 bsd3 ];
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cvxpy";
|
||||
version = "1.3.1";
|
||||
version = "1.3.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-8Hv+k2d6dVqFVMT9piLvAeIkes6Zs6eBB6qQcODQo8s=";
|
||||
hash = "sha256-C2heUEDxmfPXA/MPXSLR+GVZdiNFUVPR3ddwJFrvCXU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
{ lib
|
||||
, python3
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, blessed
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonPackage rec {
|
||||
buildPythonPackage rec {
|
||||
pname = "dashing";
|
||||
version = "0.1.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = python3.pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-JRRgjg8pp3Xb0bERFWEhnOg9U8+kuqL+QQH6uE/Vbxs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
propagatedBuildInputs = [
|
||||
blessed
|
||||
];
|
||||
|
||||
|
||||
@@ -1,46 +1,53 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, arrow-cpp
|
||||
, bokeh
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-syste
|
||||
, setuptools
|
||||
, versioneer
|
||||
|
||||
# dependencies
|
||||
, click
|
||||
, cloudpickle
|
||||
, distributed
|
||||
, fastparquet
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, fsspec
|
||||
, importlib-metadata
|
||||
, jinja2
|
||||
, numpy
|
||||
, packaging
|
||||
, pandas
|
||||
, partd
|
||||
, pyyaml
|
||||
, toolz
|
||||
|
||||
# optional-dependencies
|
||||
, numpy
|
||||
, pyarrow
|
||||
, lz4
|
||||
, pandas
|
||||
, distributed
|
||||
, bokeh
|
||||
, jinja2
|
||||
|
||||
# tests
|
||||
, arrow-cpp
|
||||
, hypothesis
|
||||
, pytest-asyncio
|
||||
, pytest-rerunfailures
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, scipy
|
||||
, setuptools
|
||||
, toolz
|
||||
, versioneer
|
||||
, zarr
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dask";
|
||||
version = "2023.4.1";
|
||||
format = "setuptools";
|
||||
version = "2023.7.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dask";
|
||||
repo = pname;
|
||||
repo = "dask";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-PkEFXF6OFZU+EMFBUopv84WniQghr5Q6757Qx6D5MyE=";
|
||||
hash = "sha256-1KnvIMEWT1MwlvkdgH10xk+lGSsGWJMLBonTtWwKjog=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -59,13 +66,18 @@ buildPythonPackage rec {
|
||||
toolz
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
passthru.optional-dependencies = lib.fix (self: {
|
||||
array = [
|
||||
numpy
|
||||
];
|
||||
complete = [
|
||||
distributed
|
||||
];
|
||||
pyarrow
|
||||
lz4
|
||||
]
|
||||
++ self.array
|
||||
++ self.dataframe
|
||||
++ self.distributed
|
||||
++ self.diagnostics;
|
||||
dataframe = [
|
||||
numpy
|
||||
pandas
|
||||
@@ -77,16 +89,16 @@ buildPythonPackage rec {
|
||||
bokeh
|
||||
jinja2
|
||||
];
|
||||
};
|
||||
});
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-rerunfailures
|
||||
pytest-xdist
|
||||
scipy
|
||||
zarr
|
||||
# from panda[test]
|
||||
hypothesis
|
||||
pytest-asyncio
|
||||
] ++ lib.optionals (!arrow-cpp.meta.broken) [ # support is sparse on aarch64
|
||||
fastparquet
|
||||
pyarrow
|
||||
];
|
||||
|
||||
@@ -103,7 +115,7 @@ buildPythonPackage rec {
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --durations=10" "" \
|
||||
--replace " --cov-config=pyproject.toml" "" \
|
||||
--replace " -v" ""
|
||||
--replace "\"-v" "\" "
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
@@ -120,12 +132,10 @@ buildPythonPackage rec {
|
||||
# AttributeError: 'str' object has no attribute 'decode'
|
||||
"test_read_dir_nometa"
|
||||
] ++ [
|
||||
"test_chunksize_files"
|
||||
# TypeError: 'ArrowStringArray' with dtype string does not support reduction 'min'
|
||||
"test_set_index_string"
|
||||
# numpy 1.24
|
||||
# RuntimeWarning: invalid value encountered in cast
|
||||
"test_setitem_extended_API_2d_mask"
|
||||
# AttributeError: 'ArrowStringArray' object has no attribute 'tobytes'. Did you mean: 'nbytes'?
|
||||
"test_dot"
|
||||
"test_dot_nan"
|
||||
"test_merge_column_with_nulls"
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "devtools";
|
||||
version = "0.10.0";
|
||||
version = "0.11.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -20,8 +20,8 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "samuelcolvin";
|
||||
repo = "python-${pname}";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-x9dL/FE94OixMAmjnmfzZUcYJBqE5P2AAIFsNJF0Fxo=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-ogogXZnuSFkWktCin+cyefjqIbGFRBVIeOrZJAa3hOE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -47,10 +47,15 @@ buildPythonPackage rec {
|
||||
disabledTests = [
|
||||
# Test for Windows32
|
||||
"test_print_subprocess"
|
||||
# sensitive to timing
|
||||
# Sensitive to timing
|
||||
"test_multiple_not_verbose"
|
||||
# sensitive to interpreter output
|
||||
"test_simple_vars"
|
||||
# Sensitive to interpreter output
|
||||
"test_simple"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# pytester_pretty is not available in Nixpkgs
|
||||
"tests/test_insert_assert.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dj-rest-auth";
|
||||
version = "3.0.0";
|
||||
version = "4.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iMerica";
|
||||
repo = "dj-rest-auth";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-wkbFUrvKhdp2Hd4QkXAvhMiaqSXFD/fgIw03nLPaO5I=";
|
||||
hash = "sha256-+ladx0b/bvvUW8zLjtG8IiWWdfPTqqm/KYbEK9uiFaU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -1,24 +1,36 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-system
|
||||
, hatchling
|
||||
|
||||
# non-propagates
|
||||
, django
|
||||
|
||||
# tests
|
||||
, pytest-django
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-bootstrap3";
|
||||
version = "23.1";
|
||||
version = "23.4";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-cJW3xmqJ87rreOoCh5nr15XSlzn8hgJGBCLnwqGUrTA=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "zostera";
|
||||
repo = "django-bootstrap3";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-1/JQ17GjBHH0JbY4EnHOS2B3KhEJdG2yL6O2nc1HNNc=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/beautifulsoup4/d' pyproject.toml
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
hatchling
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@@ -39,7 +51,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Bootstrap 3 integration for Django";
|
||||
homepage = "https://github.com/zostera/django-bootstrap3";
|
||||
changelog = "https://github.com/zostera/django-bootstrap3/blob/${version}/CHANGELOG.md";
|
||||
changelog = "https://github.com/zostera/django-bootstrap3/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
|
||||
@@ -3,30 +3,32 @@
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
, hatchling
|
||||
|
||||
# non-propagates
|
||||
, django
|
||||
|
||||
# dependencies
|
||||
, beautifulsoup4
|
||||
|
||||
# tests
|
||||
, django
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-bootstrap4";
|
||||
version = "23.1";
|
||||
version = "23.2";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zostera";
|
||||
repo = "django-bootstrap4";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-55pfUPwxDzpDn4stMEPvrQAexs+goN5SKFvwSR3J4aM=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-RYGwi+hRfTqPAikrv33w27v1/WLwRvXexSusJKdr2o8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,22 +1,27 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, hatchling
|
||||
, django
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-js-asset";
|
||||
version = "2.0";
|
||||
format = "setuptools";
|
||||
version = "2.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matthiask";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-YDOmbqB0xDBAlOSO1UBYJ8VfRjJ8Z6Hw1i24DNSrnjw=";
|
||||
hash = "sha256-rxJ9TgVBiJByiFSLTg/dtAR31Fs14D4sh2axyBcKGTU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
@@ -47,10 +47,12 @@ buildPythonPackage rec {
|
||||
|
||||
DJANGO_SETTINGS_MODULE = "tests.settings";
|
||||
|
||||
# xdist is disabled right now because it can cause race conditions on high core machines
|
||||
# https://github.com/jazzband/django-oauth-toolkit/issues/1300
|
||||
nativeCheckInputs = [
|
||||
djangorestframework
|
||||
pytest-django
|
||||
pytest-xdist
|
||||
# pytest-xdist
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
@@ -9,29 +9,29 @@
|
||||
, h2
|
||||
, httpx
|
||||
, idna
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, requests-toolbelt
|
||||
, setuptools-scm
|
||||
, sniffio
|
||||
, trio
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dnspython";
|
||||
version = "2.3.0";
|
||||
format = "setuptools";
|
||||
version = "2.4.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-Ik4ysD60a+cOEu9tZOC+Ejpk5iGrTAgi/21FDVKlQLk=";
|
||||
hash = "sha256-wzlxx5r1vpaLuJfpXCRI4RpkXuhNk7Jlzgt6q+Xf3Kg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
poetry-core
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
|
||||
@@ -28,13 +28,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "drf-spectacular";
|
||||
version = "0.26.2";
|
||||
version = "0.26.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tfranzel";
|
||||
repo = "drf-spectacular";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-wwR7ZdbWFNRgxQubdgriDke5W6u7VNsNZV9xqQypSrY=";
|
||||
hash = "sha256-O47676BOuCx3wMpeuRATQOAWZQev+R+OxZi4boQABmc=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
, pythonOlder
|
||||
, dnspython
|
||||
, greenlet
|
||||
, isPyPy
|
||||
, monotonic
|
||||
, six
|
||||
, nose
|
||||
, nose3
|
||||
, iana-etc
|
||||
, pytestCheckHook
|
||||
, libredirect
|
||||
@@ -35,10 +36,12 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
nose
|
||||
nose3
|
||||
];
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
# libredirect is not available on darwin
|
||||
# tests hang on pypy indefinitely
|
||||
doCheck = !stdenv.isDarwin && !isPyPy;
|
||||
|
||||
preCheck = lib.optionalString doCheck ''
|
||||
echo "nameserver 127.0.0.1" > resolv.conf
|
||||
|
||||
@@ -7,20 +7,29 @@
|
||||
, flask-sqlalchemy
|
||||
, mongoengine
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, sqlalchemy
|
||||
, sqlalchemy-utils
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "factory-boy";
|
||||
version = "3.2.1";
|
||||
version = "3.3.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "factory_boy";
|
||||
inherit version;
|
||||
hash = "sha256-qY0newwEfHXrbkq4UIp/gfsD0sshmG9ieRNUbveipV4=";
|
||||
hash = "sha256-vHbZfRplu9mEKm1yKIIJjrVJ7I7hCB+fsuj/KfDDAPE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace tests/test_version.py \
|
||||
--replace '"3.2.1.dev0")' '"${version}")'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
faker
|
||||
];
|
||||
@@ -32,6 +41,7 @@ buildPythonPackage rec {
|
||||
mongoengine
|
||||
pytestCheckHook
|
||||
sqlalchemy
|
||||
sqlalchemy-utils
|
||||
];
|
||||
|
||||
# Checks for MongoDB requires an a running DB
|
||||
@@ -51,6 +61,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Python package to create factories for complex objects";
|
||||
homepage = "https://github.com/rbarrois/factory_boy";
|
||||
changelog = "https://github.com/FactoryBoy/factory_boy/blob/${version}/docs/changelog.rst";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "filelock";
|
||||
version = "3.12.0";
|
||||
version = "3.12.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-/AOuQyiMAT0uqDyFlwAbESnbNRqtnFf+JAkyeRa45xg=";
|
||||
hash = "sha256-ACdAUY2KpZomsMduEPuMbhXq6CXTS2/fZwMz/XuTjYE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -1,53 +1,47 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, pythonAtLeast
|
||||
, pbr
|
||||
, setuptools
|
||||
, testtools
|
||||
, mock
|
||||
, python
|
||||
, six
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fixtures";
|
||||
version = "3.0.0";
|
||||
version = "4.1.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "fcf0d60234f1544da717a9738325812de1f42c2fa085e2d9252d8fff5712b2ef";
|
||||
hash = "sha256-grHF5p9hVSbvbAZxiKHmxgZ99/iDMlCcmfi4/buXdvM=";
|
||||
};
|
||||
|
||||
patches = lib.optionals (pythonAtLeast "3.9") [
|
||||
# drop tests that try to monkeypatch a classmethod, which fails on python3.9
|
||||
# https://github.com/testing-cabal/fixtures/issues/44
|
||||
(fetchpatch {
|
||||
url = "https://salsa.debian.org/openstack-team/python/python-fixtures/-/raw/debian/victoria/debian/patches/remove-broken-monkey-patch-test.patch";
|
||||
sha256 = "1s3hg2zmqc4shmnf90kscphzj5qlqpxghzw2a59p8f88zrbsj97r";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pbr
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
testtools
|
||||
six # not in install_requires, but used in fixture.py
|
||||
pbr
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
streams = [
|
||||
testtools
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m testtools.run fixtures.test_suite
|
||||
'';
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.streams;
|
||||
|
||||
meta = {
|
||||
description = "Reusable state for writing clean tests and more";
|
||||
homepage = "https://pypi.python.org/pypi/fixtures";
|
||||
homepage = "https://pypi.org/project/fixtures/";
|
||||
changelog = "https://github.com/testing-cabal/fixtures/blob/${version}/NEWS";
|
||||
license = lib.licenses.asl20;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,38 +1,36 @@
|
||||
{ lib
|
||||
, asgiref
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
, flask
|
||||
, hiro
|
||||
, limits
|
||||
, ordered-set
|
||||
, rich
|
||||
, typing-extensions
|
||||
|
||||
, asgiref
|
||||
, hiro
|
||||
, pymemcache
|
||||
, pymongo
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, redis
|
||||
, pymongo
|
||||
, rich
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flask-limiter";
|
||||
version = "3.1.0";
|
||||
version = "3.3.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alisaifee";
|
||||
repo = "flask-limiter";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-eAJRqyAH1j1NHYfagRZM2fPE6hm9+tJHD8FMqvgvMBI=";
|
||||
hash = "sha256-YDVZ/dD+TRJEnJRTRmGEB6EIkK5eQ5MdXh8FideoVDQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements/main.txt \
|
||||
--replace "rich>=12,<13" "rich"
|
||||
|
||||
sed -i "/--cov/d" pytest.ini
|
||||
|
||||
# flask-restful is unmaintained and breaks regularly, don't depend on it
|
||||
@@ -82,11 +80,14 @@ buildPythonPackage rec {
|
||||
"tests/test_storage.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "flask_limiter" ];
|
||||
pythonImportsCheck = [
|
||||
"flask_limiter"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Rate limiting for flask applications";
|
||||
homepage = "https://flask-limiter.readthedocs.org/";
|
||||
changelog = "https://github.com/alisaifee/flask-limiter/blob/${version}/HISTORY.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
{ lib
|
||||
, python3
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
|
||||
# build-system
|
||||
, poetry-core
|
||||
|
||||
# propagates
|
||||
, typing-extensions
|
||||
, repath
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -15,13 +21,13 @@ buildPythonPackage rec {
|
||||
hash = "sha256-8WG7odYiGrew4GwD+MUuzQPmDn7V/GmocBproqsbCNw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
typing-extensions
|
||||
propagatedBuildInputs = [
|
||||
repath
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
@@ -1,7 +1,20 @@
|
||||
{ lib
|
||||
, python3
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
|
||||
# build-system
|
||||
, poetry-core
|
||||
|
||||
# propagates
|
||||
, flet-core
|
||||
, httpx
|
||||
, oauthlib
|
||||
, packaging
|
||||
, typing-extensions
|
||||
, watchdog
|
||||
, websocket-client
|
||||
, websockets
|
||||
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -20,11 +33,11 @@ buildPythonPackage rec {
|
||||
--replace 'watchdog = "^2' 'watchdog = ">=2'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
propagatedBuildInputs = [
|
||||
flet-core
|
||||
typing-extensions
|
||||
websocket-client
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flit";
|
||||
version = "3.8.0";
|
||||
version = "3.9.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "takluyver";
|
||||
repo = "flit";
|
||||
rev = version;
|
||||
hash = "sha256-iXf9K/xI4u+dDV0Zf6S08nbws4NqycrTEW0B8/qCjQc=";
|
||||
hash = "sha256-yl2+PcKr7xRW4oIBWl+gzh/nKhSNu5GH9fWKRGgaNHU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -51,6 +51,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/pypa/flit/blob/${version}/doc/history.rst";
|
||||
description = "A simple packaging tool for simple packages";
|
||||
homepage = "https://github.com/pypa/flit";
|
||||
license = licenses.bsd3;
|
||||
|
||||
@@ -11,14 +11,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fnv-hash-fast";
|
||||
version = "0.3.1";
|
||||
version = "0.4.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bdraco";
|
||||
repo = "fnv-hash-fast";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-yApMUTO6Kq2YESGMpkU4/FlN57+hX0uQr2fGH7QIdUE=";
|
||||
hash = "sha256-4JhzrRnpb9+FYXd0S2XcBelaHuRksm8RC29rxZqtlpw=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
{ lib
|
||||
, python3
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, jinja2
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonPackage rec {
|
||||
buildPythonPackage rec {
|
||||
pname = "glad2";
|
||||
version = "2.0.4";
|
||||
format = "setuptools";
|
||||
@@ -13,15 +14,18 @@ python3.pkgs.buildPythonPackage rec {
|
||||
hash = "sha256-7eFjn2nyugjx9JikCnB/NKYJ0k6y6g1sk2RomnmM99A=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
propagatedBuildInputs = [
|
||||
jinja2
|
||||
];
|
||||
|
||||
# no python tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "glad" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specifications";
|
||||
homepage = "https://pypi.org/project/glad2";
|
||||
homepage = "https://github.com/Dav1dde/glad";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ kranzes ];
|
||||
};
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "graphene-django";
|
||||
version = "3.1.2";
|
||||
version = "3.1.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
@@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||
owner = "graphql-python";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-VQwDK9FRbHy/AFbdZKmvl5e52smSCyWTrs00DvJqVmo=";
|
||||
hash = "sha256-33Z6W2dAsj5VXt3E7XJtUFiq7yFlCixnFnhbAUv+xgU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, pythonOlder
|
||||
, eventlet
|
||||
, gevent
|
||||
@@ -11,24 +10,17 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gunicorn";
|
||||
version = "20.1.0";
|
||||
version = "21.2.0";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "benoitc";
|
||||
repo = "gunicorn";
|
||||
rev = version;
|
||||
hash = "sha256-xdNHm8NQWlAlflxof4cz37EoM74xbWrNaf6jlwwzHv4=";
|
||||
hash = "sha256-xP7NNKtz3KNrhcAc00ovLZRx2h6ZqHbwiFOpCiuwf98=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# fix eventlet 0.30.3+ compability
|
||||
url = "https://github.com/benoitc/gunicorn/commit/6a8ebb4844b2f28596ffe7421eb9f7d08c8dc4d8.patch";
|
||||
hash = "sha256-+iApgohzPZ/cHTGBNb7XkqLaHOVVPF26BnPUsvISoZw=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov=gunicorn --cov-report=xml" ""
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
# runtime
|
||||
, editables
|
||||
, importlib-metadata # < 3.8
|
||||
, packaging
|
||||
, pathspec
|
||||
, pluggy
|
||||
, tomli
|
||||
, trove-classifiers
|
||||
|
||||
# tests
|
||||
, build
|
||||
@@ -18,27 +18,24 @@
|
||||
, virtualenv
|
||||
}:
|
||||
|
||||
let
|
||||
buildPythonPackage rec {
|
||||
pname = "hatchling";
|
||||
version = "1.13.0";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
version = "1.18.0";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-+NJ1osxyBzUoa3wuK8NdoFdh5tNpXC+kFlUDlfEMU8c=";
|
||||
hash = "sha256-UOmcMRDOCvw/e9ut/xxxwXdY5HZzHCdgeUDPpmhkico=";
|
||||
};
|
||||
|
||||
# listed in backend/src/hatchling/ouroboros.py
|
||||
# listed in backend/pyproject.toml
|
||||
propagatedBuildInputs = [
|
||||
editables
|
||||
packaging
|
||||
pathspec
|
||||
pluggy
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
trove-classifiers
|
||||
] ++ lib.optionals (pythonOlder "3.11") [
|
||||
tomli
|
||||
];
|
||||
@@ -54,7 +51,6 @@ buildPythonPackage {
|
||||
# listed in /backend/tests/downstream/requirements.txt
|
||||
nativeCheckInputs = [
|
||||
build
|
||||
packaging
|
||||
requests
|
||||
virtualenv
|
||||
];
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonAtLeast
|
||||
, jsonschema
|
||||
, pytestCheckHook
|
||||
, python-dateutil
|
||||
@@ -12,6 +13,9 @@ buildPythonPackage rec {
|
||||
version = "0.0.16";
|
||||
format = "pyproject";
|
||||
|
||||
# ValueError: mutable default <class 'tests.conftest.Point'> for field a is not allowed: use default_factory
|
||||
disabled = pythonAtLeast "3.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dbt-labs";
|
||||
repo = pname;
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "html5tagger";
|
||||
version = "1.3.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sanic-org";
|
||||
repo = "html5tagger";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Or0EizZC9FMjTcbgecDvgGB09KNGyxHreSDojgB7ysg=";
|
||||
};
|
||||
|
||||
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"html5tagger"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Create HTML documents from Python";
|
||||
homepage = "https://github.com/sanic-org/html5tagger";
|
||||
license = licenses.unlicense;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
@@ -13,11 +13,14 @@
|
||||
, pythonOlder
|
||||
, sniffio
|
||||
, socksio
|
||||
# for passthru.tests
|
||||
, httpx
|
||||
, httpx-socks
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httpcore";
|
||||
version = "0.16.3";
|
||||
version = "0.17.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -26,7 +29,7 @@ buildPythonPackage rec {
|
||||
owner = "encode";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-3bC97CTZi6An+owjoJF7Irtr7ONbP8RtNdTIGJRy0Ng=";
|
||||
hash = "sha256-qAoORhzBbjXxgtzTqbAxWBxrohzfwDWm5mxxrgeXt48=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -70,7 +73,12 @@ buildPythonPackage rec {
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
passthru.tests = {
|
||||
inherit httpx httpx-socks;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/encode/httpcore/releases/tag/${version}";
|
||||
description = "A minimal low-level HTTP client";
|
||||
homepage = "https://github.com/encode/httpcore";
|
||||
license = licenses.bsd3;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httpx";
|
||||
version = "0.23.3";
|
||||
version = "0.24.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -38,7 +38,7 @@ buildPythonPackage rec {
|
||||
owner = "encode";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-ZLRzkyoFbAY2Xs1ORWBqvc2gpKovg9wRs/RtAryOcVg=";
|
||||
hash = "sha256-qG6fgijNgQKjpSG6sg0+0yqeAU6qV7czR8NgWe63LIg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -1,32 +1,53 @@
|
||||
{ lib
|
||||
, pythonAtLeast
|
||||
, pythonOlder
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, stdenv
|
||||
, numpydoc
|
||||
, pytestCheckHook
|
||||
, lz4
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
, sphinx
|
||||
|
||||
# propagates (optional, but unspecified)
|
||||
# https://github.com/joblib/joblib#dependencies
|
||||
, lz4
|
||||
, psutil
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
, threadpoolctl
|
||||
}:
|
||||
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "joblib";
|
||||
version = "1.2.0";
|
||||
version = "1.3.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-4c7kp55K8iiBFk8hjUMR9gB0GX+3B+CC6AO2H20TcBg=";
|
||||
hash = "sha256-H5N5Bt9lMpupgBPclpL+IqTF5KZIES3lAFCLGKIbQeM=";
|
||||
};
|
||||
|
||||
nativeCheckInputs = [ sphinx numpydoc pytestCheckHook psutil ];
|
||||
propagatedBuildInputs = [ lz4 setuptools ];
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
lz4
|
||||
psutil
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
threadpoolctl
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"joblib/test"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "joblib/test" ];
|
||||
disabledTests = [
|
||||
"test_disk_used" # test_disk_used is broken: https://github.com/joblib/joblib/issues/57
|
||||
"test_parallel_call_cached_function_defined_in_jupyter" # jupyter not available during tests
|
||||
@@ -36,6 +57,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/joblib/joblib/releases/tag/${version}";
|
||||
description = "Lightweight pipelining: using Python functions as pipeline jobs";
|
||||
homepage = "https://joblib.readthedocs.io/";
|
||||
license = licenses.bsd3;
|
||||
|
||||
@@ -2,29 +2,40 @@
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
|
||||
# build
|
||||
, poetry-core
|
||||
, jsonschema
|
||||
|
||||
# propagates
|
||||
, pathable
|
||||
, pyyaml
|
||||
, typing-extensions
|
||||
, referencing
|
||||
, requests
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jsonschema-spec";
|
||||
version = "0.1.4";
|
||||
version = "0.2.3";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "p1c2u";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-kLCV9WPWGrVgpbueafMVqtGmj3ifrBzTChE2kyxpyZk=";
|
||||
hash = "sha256-Sa97DwPnGMLmT00hVdkoGO7C0vrvtwxvUvv9lq4nCY4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" pyproject.toml
|
||||
sed -i "/^--cov/d" pyproject.toml
|
||||
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'referencing = ">=0.28.0,<0.30.0"' 'referencing = ">=0.28.0"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -32,14 +43,15 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jsonschema
|
||||
pathable
|
||||
pyyaml
|
||||
typing-extensions
|
||||
referencing
|
||||
requests
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, hatch-vcs
|
||||
, hatchling
|
||||
, importlib-resources
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, referencing
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jsonschema-specifications";
|
||||
version = "2023.7.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "jsonschema_specifications";
|
||||
inherit version;
|
||||
hash = "sha256-yRpQQE6Iofa6QGNneOLuCPbiTFYT/kxTrCRXilp/crs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatch-vcs
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
referencing
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
importlib-resources
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"jsonschema_specifications"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Support files exposing JSON from the JSON Schema specifications";
|
||||
homepage = "https://github.com/python-jsonschema/jsonschema-specifications";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
@@ -5,13 +5,13 @@
|
||||
, hatch-fancy-pypi-readme
|
||||
, hatch-vcs
|
||||
, hatchling
|
||||
, importlib-metadata
|
||||
, importlib-resources
|
||||
, jsonschema-specifications
|
||||
, pkgutil-resolve-name
|
||||
, pyrsistent
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, twisted
|
||||
, typing-extensions
|
||||
, referencing
|
||||
, rpds-py
|
||||
|
||||
# optionals
|
||||
, fqdn
|
||||
@@ -27,14 +27,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jsonschema";
|
||||
version = "4.17.3";
|
||||
version = "4.18.4";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-D4ZEN6uLYHa6ZwdFPvj5imoNUSqA6T+KvbZ29zfstg0=";
|
||||
hash = "sha256-+zZCc1OZ+pWMDSqtcFeQFVRZbGM0n09rKDxJPPaSol0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -49,10 +49,9 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
pyrsistent
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
typing-extensions
|
||||
jsonschema-specifications
|
||||
referencing
|
||||
rpds-py
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
importlib-resources
|
||||
pkgutil-resolve-name
|
||||
@@ -82,20 +81,15 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
twisted
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
export JSON_SCHEMA_TEST_SUITE=json
|
||||
trial jsonschema
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"jsonschema"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An implementation of JSON Schema validation for Python";
|
||||
description = "An implementation of JSON Schema validation";
|
||||
homepage = "https://github.com/python-jsonschema/jsonschema";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
, jinja2
|
||||
, tornado
|
||||
, pyzmq
|
||||
, flaky
|
||||
, ipykernel
|
||||
, traitlets
|
||||
, jupyter-core
|
||||
@@ -23,6 +24,7 @@
|
||||
, jupyter-server-terminals
|
||||
, nbformat
|
||||
, nbconvert
|
||||
, overrides
|
||||
, send2trash
|
||||
, terminado
|
||||
, prometheus-client
|
||||
@@ -33,14 +35,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jupyter-server";
|
||||
version = "2.0.6";
|
||||
version = "2.7.0";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "jupyter_server";
|
||||
inherit version;
|
||||
hash= "sha256-jddZkukLfKVWeUoe1cylEmPGl6vG0N9WGvV0qhwKAz8=";
|
||||
hash= "sha256-NtoKJm0xpBrDNaNmyIkzwX36W7gXpI9cAsFtMDvJR38=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -60,6 +62,7 @@ buildPythonPackage rec {
|
||||
jupyter-server-terminals
|
||||
nbformat
|
||||
nbconvert
|
||||
overrides
|
||||
send2trash
|
||||
terminado
|
||||
prometheus-client
|
||||
@@ -68,6 +71,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
flaky
|
||||
ipykernel
|
||||
pandoc
|
||||
pytestCheckHook
|
||||
@@ -78,12 +82,17 @@ buildPythonPackage rec {
|
||||
requests
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-W" "ignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
export PATH=$out/bin:$PATH
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
"test_server_extension_list"
|
||||
"test_cull_idle"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
# attempts to use trashcan, build env doesn't allow this
|
||||
@@ -103,6 +112,7 @@ buildPythonPackage rec {
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/jupyter-server/jupyter_server/releases/tag/v${version}";
|
||||
description = "The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications";
|
||||
homepage = "https://github.com/jupyter-server/jupyter_server";
|
||||
license = licenses.bsdOriginal;
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "keyring";
|
||||
version = "23.13.1";
|
||||
version = "24.2.0";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-ui4VqbNeIZCNCq9OCkesxS1q4zRE3w2itJ1BpG721ng=";
|
||||
hash = "sha256-ygdGoZ7EISGfTXE/hI+il6ZhqKjBUEhn5Vv7XgkJFQk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -54,7 +54,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Store and access your passwords safely";
|
||||
homepage = "https://github.com/jaraco/keyring";
|
||||
changelog = "https://github.com/jaraco/keyring/blob/v${version}/CHANGES.rst";
|
||||
changelog = "https://github.com/jaraco/keyring/blob/v${version}/NEWS.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lovek323 dotlambda ];
|
||||
platforms = platforms.unix;
|
||||
|
||||
@@ -4,43 +4,36 @@
|
||||
, azure-servicebus
|
||||
, backports-zoneinfo
|
||||
, buildPythonPackage
|
||||
, cached-property
|
||||
, case
|
||||
, fetchPypi
|
||||
, hypothesis
|
||||
, importlib-metadata
|
||||
, pyro4
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, vine
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "kombu";
|
||||
version = "5.3.0";
|
||||
version = "5.3.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-0ITsH5b3p8N7qegWgjvbwI8Px92zpb5VWAXmkhAil9g=";
|
||||
hash = "sha256-+9dXLZLAv3HBEqa0UWMVPepae2pwHsFrVown0P0jcPI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements/test.txt \
|
||||
--replace "pytz>dev" "pytz"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
amqp
|
||||
vine
|
||||
] ++ lib.optionals (pythonOlder "3.10") [
|
||||
typing-extensions
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
backports-zoneinfo
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
cached-property
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
@@ -58,6 +51,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/celery/kombu/releases/tag/v${version}";
|
||||
description = "Messaging library for Python";
|
||||
homepage = "https://github.com/celery/kombu";
|
||||
license = licenses.bsd3;
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, pbr, python-ldap, prettytable, fixtures, testresources, testtools }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pbr
|
||||
, python-ldap
|
||||
, prettytable
|
||||
, six
|
||||
, fixtures
|
||||
, testresources
|
||||
, testtools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ldappool";
|
||||
@@ -20,7 +29,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeBuildInputs = [ pbr ];
|
||||
|
||||
propagatedBuildInputs = [ python-ldap prettytable ];
|
||||
propagatedBuildInputs = [ python-ldap prettytable six ];
|
||||
|
||||
nativeCheckInputs = [ fixtures testresources testtools ];
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "levenshtein";
|
||||
version = "0.21.0";
|
||||
version = "0.21.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
@@ -22,7 +22,7 @@ buildPythonPackage rec {
|
||||
owner = "maxbachmann";
|
||||
repo = "Levenshtein";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-j28OQkJymkh6tIGYLoZLad7OUUImjZqXdqM2zU3haac=";
|
||||
hash = "sha256-I1kVGbZI1hQRNv0e44giWiMqmeqaqFZks20IyFQ9VIU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -8,13 +8,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lxml";
|
||||
version = "4.9.2";
|
||||
version = "4.9.3-3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "refs/tags/lxml-${version}";
|
||||
hash = "sha256-IHuTlcDbrZHvS6Gtx48IkznVU+9WxZT9XHUZf8M1WOE=";
|
||||
hash = "sha256-Vrizi+6jUUEx7qODU4PAH5ZmvBIyT9H18+QpYB0m1f4=";
|
||||
};
|
||||
|
||||
# setuptoolsBuildPhase needs dependencies to be passed through nativeBuildInputs
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "markdown";
|
||||
version = "3.4.3";
|
||||
version = "3.4.4";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||
owner = "Python-Markdown";
|
||||
repo = "markdown";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-o2MDsrSkR0fMA5I8AoQcJrpwNGO5lXJn8O47tQN7U6o=";
|
||||
hash = "sha256-5PIIhbJVsotGwZ3BQ4x0I7WjgnGF3opNrn8J+xZCflg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# Add all of mesonFlags to -Csetup-args for pypa builds
|
||||
for f in $mesonFlags; do
|
||||
pypaBuildFlags+=" -Csetup-args=$f"
|
||||
# This requires pip>23.0.1, see: https://meson-python.readthedocs.io/en/latest/how-to-guides/config-settings.html
|
||||
pipBuildFlags+=" --config-settings=setup-args=$f"
|
||||
done
|
||||
@@ -13,13 +13,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "meson-python";
|
||||
version = "0.12.1";
|
||||
version = "0.13.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "meson_python";
|
||||
hash = "sha256-PVs+WB1wpYqXucEWp16Xp2zEtMfnX6Blj8g5I3Hi8sI=";
|
||||
hash = "sha256-Y7MXAAFCXEL6TP7a25BRy9KJJf+O7XxA02ugCZ48dhg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -39,6 +39,9 @@ buildPythonPackage rec {
|
||||
] ++ lib.optionals (pythonOlder "3.10") [
|
||||
typing-extensions
|
||||
];
|
||||
setupHooks = [
|
||||
./add-build-flags.sh
|
||||
];
|
||||
|
||||
# Ugly work-around. Drop ninja dependency.
|
||||
# We already have ninja, but it comes without METADATA.
|
||||
|
||||
@@ -38,16 +38,21 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mlflow";
|
||||
version = "2.4.2";
|
||||
version = "2.5.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-CxpxsP9Gedzo/yrpcz6ZbsC2wQbbk0EuDfhgb3kYZ8g=";
|
||||
hash = "sha256-+ZKujqnHNQI0S69IxOxEeqnvv6iWW8CQho5hYyNPTrA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements/core-requirements.txt \
|
||||
--replace "gunicorn<21" "gunicorn"
|
||||
'';
|
||||
|
||||
# Remove currently broken dependency `shap`, a model explainability package.
|
||||
# This seems quite unprincipled especially with tests not being enabled,
|
||||
# but not mlflow has a 'skinny' install option which does not require `shap`.
|
||||
|
||||
@@ -17,7 +17,7 @@ buildPythonPackage rec {
|
||||
owner = "jcrist";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-hxXywlDZoQ1DUL/03UngIdlHke8Ey4rDbEV4JKxiGps=";
|
||||
hash = "sha256-IDu+Yu9BKk4/ITkNY6YLVmJ5zNR6F4LF1vj8QIEW108=";
|
||||
};
|
||||
|
||||
# Requires libasan to be accessible
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, pythonOlder
|
||||
|
||||
# build-system
|
||||
@@ -31,7 +32,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mypy";
|
||||
version = "1.3.0";
|
||||
version = "1.4.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -40,9 +41,17 @@ buildPythonPackage rec {
|
||||
owner = "python";
|
||||
repo = "mypy";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-dfKuIyzgZo5hAZHighpXH78dHJ1PMbyCakyxF34CnMQ=";
|
||||
hash = "sha256-2PeE/L9J6J0IuUpHZasemM8xxefNJrdzYnutgJjevWQ=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# pytest 7.4 compat
|
||||
url = "https://github.com/python/mypy/commit/0a020fa73cf5339a80d81c5b44e17116a5c5307e.patch";
|
||||
hash = "sha256-3HQPo+V7T8Gr92clXAt5QJUJPmhjnGjQgFq0qR0whfw=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
mypy-extensions
|
||||
setuptools
|
||||
@@ -108,6 +117,8 @@ buildPythonPackage rec {
|
||||
"mypy/test/testdaemon.py"
|
||||
# fails to find setuptools
|
||||
"mypyc/test/test_commandline.py"
|
||||
# fails to find hatchling
|
||||
"mypy/test/testpep561.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -15,15 +15,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nbformat";
|
||||
version = "5.7.3";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
version = "5.9.1";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-SwIfyiTTp0e/TmJmlAM9eS1ZRwWCnl41sU7jNp+fZHc=";
|
||||
hash = "sha256-On9S0EBjnL2KOJAhjIsP+5MhFYjFdEbJAJXjK6WIG10=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -41,14 +41,14 @@ let
|
||||
};
|
||||
in buildPythonPackage rec {
|
||||
pname = "numpy";
|
||||
version = "1.24.2";
|
||||
version = "1.25.1";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "tar.gz";
|
||||
hash = "sha256-ADqfUw6IDLLNF3y6GvciC5qkLe+cSvwqL8Pua+frKyI=";
|
||||
hash = "sha256-mjqfOmFIDMCGEXtCaovYaGnCE/xAcuYG8BxOS2brkr8=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -59,13 +59,6 @@ in buildPythonPackage rec {
|
||||
hash = "sha256-6Dbmf/RWvQJPTIjvchVaywHGcKCsgap/0wAp5WswuCo=";
|
||||
})
|
||||
|
||||
# Backport from 1.25. `platform.machine` returns `arm64` on aarch64-darwin, which causes
|
||||
# differing results between `_selected_real_kind_func` and Fortran’s `selected_real_kind`.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/numpy/numpy/commit/afcedf4b63f4a94187e6995c2adea0da3bb18e83.patch";
|
||||
hash = "sha256-cxBoimX5a9wC2qUIGAo5o/M2E9+eV63bV2/wLmfDYKg=";
|
||||
})
|
||||
|
||||
# Disable `numpy/core/tests/test_umath.py::TestComplexFunctions::test_loss_of_precision[complex256]`
|
||||
# on x86_64-darwin because it fails under Rosetta 2 due to issues with trig functions and
|
||||
# 80-bit long double complex numbers.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
, graphviz
|
||||
, graphvizPkgs
|
||||
, isPyPy
|
||||
, pytestCheckHook
|
||||
, python
|
||||
, pythonOlder
|
||||
, substituteAll
|
||||
}:
|
||||
@@ -14,7 +14,7 @@ buildPythonPackage rec {
|
||||
version = "3.6.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.5" || isPyPy;
|
||||
disabled = pythonOlder "3.7" || isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@@ -28,27 +28,27 @@ buildPythonPackage rec {
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
graphviz
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
passthru.optional-dependencies = {
|
||||
ipython = [
|
||||
graphviz
|
||||
];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"objgraph"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"tests.py"
|
||||
];
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} tests.py
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Draws Python object reference graphs with graphviz";
|
||||
homepage = "https://mg.pov.lt/objgraph/";
|
||||
changelog = "https://github.com/mgedmin/objgraph/blob/${version}/CHANGES.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,23 +1,32 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
|
||||
# build-system
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, isodate
|
||||
|
||||
# propagates
|
||||
, jsonschema
|
||||
, jsonschema-specifications
|
||||
, rfc3339-validator
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "openapi-schema-validator";
|
||||
version = "0.4.4";
|
||||
version = "0.6.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "p1c2u";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-2XTCdp9dfzhNKCpq71pt7yEZm9abiEmFHD/114W+jOQ=";
|
||||
hash = "sha256-859v6KqIRfUq4d/KbkvGnGqlxz6BXTl+tKQHPhtkTH0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -30,6 +39,7 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jsonschema
|
||||
jsonschema-specifications
|
||||
rfc3339-validator
|
||||
];
|
||||
|
||||
@@ -40,6 +50,7 @@ buildPythonPackage rec {
|
||||
pythonImportsCheck = [ "openapi_schema_validator" ];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/python-openapi/openapi-schema-validator/releases/tag/${version}";
|
||||
description = "Validates OpenAPI schema against the OpenAPI Schema Specification v3.0";
|
||||
homepage = "https://github.com/p1c2u/openapi-schema-validator";
|
||||
license = licenses.bsd3;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-system
|
||||
, poetry-core
|
||||
|
||||
# propagates
|
||||
@@ -10,31 +12,30 @@
|
||||
, jsonschema-spec
|
||||
, lazy-object-proxy
|
||||
, openapi-schema-validator
|
||||
, pyyaml
|
||||
|
||||
# optional
|
||||
, requests
|
||||
|
||||
# tests
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "openapi-spec-validator";
|
||||
version = "0.5.6";
|
||||
version = "0.6.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
# no tests via pypi sdist
|
||||
src = fetchFromGitHub {
|
||||
owner = "p1c2u";
|
||||
repo = pname;
|
||||
repo = "openapi-spec-validator";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-BIGHaZhrEc7wcIesBIXdVRzozllCNOz67V+LmQfZ8oY=";
|
||||
hash = "sha256-sGr4dH6Twyi4OeCAXZiboN75dYZ6wJ0pWMzV9zOfee0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/--cov/d' pyproject.toml
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
@@ -48,14 +49,6 @@ buildPythonPackage rec {
|
||||
importlib-resources
|
||||
];
|
||||
|
||||
passthru.optional-dependencies.requests = [
|
||||
requests
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
sed -i '/--cov/d' pyproject.toml
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
, fetchPypi
|
||||
, fixtures
|
||||
, pbr
|
||||
, six
|
||||
, subunit
|
||||
, callPackage
|
||||
}:
|
||||
@@ -10,6 +11,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "oslotest";
|
||||
version = "4.5.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@@ -20,6 +22,7 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
fixtures
|
||||
six
|
||||
subunit
|
||||
];
|
||||
|
||||
|
||||
@@ -2,114 +2,218 @@
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, pythonOlder
|
||||
|
||||
# build-system
|
||||
, cython
|
||||
, setuptools
|
||||
, versioneer
|
||||
|
||||
# propagates
|
||||
, numpy
|
||||
, python-dateutil
|
||||
, pytz
|
||||
# Test inputs
|
||||
, tzdata
|
||||
|
||||
# optionals
|
||||
, beautifulsoup4
|
||||
, bottleneck
|
||||
, blosc2
|
||||
, brotlipy
|
||||
, fsspec
|
||||
, gcsfs
|
||||
, html5lib
|
||||
, jinja2
|
||||
, lxml
|
||||
, matplotlib
|
||||
, numba
|
||||
, numexpr
|
||||
, odfpy
|
||||
, openpyxl
|
||||
, psycopg2
|
||||
, pyarrow
|
||||
, pymysql
|
||||
, pyqt5
|
||||
, pyreadstat
|
||||
, python-snappy
|
||||
, qtpy
|
||||
, s3fs
|
||||
, scipy
|
||||
, sqlalchemy
|
||||
, tables
|
||||
, tabulate
|
||||
, xarray
|
||||
, xlrd
|
||||
, xlsxwriter
|
||||
, zstandard
|
||||
|
||||
# tests
|
||||
, adv_cmds
|
||||
, glibc
|
||||
, glibcLocales
|
||||
, hypothesis
|
||||
, jinja2
|
||||
, pytestCheckHook
|
||||
, pytest-xdist
|
||||
, pytest-asyncio
|
||||
, xlsxwriter
|
||||
# Darwin inputs
|
||||
, python
|
||||
, runtimeShell
|
||||
, libcxx
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pandas";
|
||||
version = "1.5.3";
|
||||
format = "setuptools";
|
||||
version = "2.0.3";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-dKP9flp+wFLxgyc9x7Cs06hj7fdSD106F2XAT/2zsLE=";
|
||||
hash = "sha256-wC83Kojg0X820wk6ZExzz8F4jodqfEvLQCCndRLiBDw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
cython
|
||||
numpy
|
||||
versioneer
|
||||
] ++ versioneer.optional-dependencies.toml;
|
||||
|
||||
buildInputs = lib.optional stdenv.isDarwin libcxx;
|
||||
enableParallelBuilding = true;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
python-dateutil
|
||||
pytz
|
||||
tzdata
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
glibcLocales
|
||||
hypothesis
|
||||
jinja2
|
||||
pytest-asyncio
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
xlsxwriter
|
||||
];
|
||||
passthru.optional-dependencies = let
|
||||
extras = {
|
||||
aws = [
|
||||
s3fs
|
||||
];
|
||||
clipboard = [
|
||||
pyqt5
|
||||
qtpy
|
||||
];
|
||||
compression = [
|
||||
brotlipy
|
||||
python-snappy
|
||||
zstandard
|
||||
];
|
||||
computation = [
|
||||
scipy
|
||||
xarray
|
||||
];
|
||||
excel = [
|
||||
odfpy
|
||||
openpyxl
|
||||
# TODO: pyxlsb
|
||||
xlrd
|
||||
xlsxwriter
|
||||
];
|
||||
feather = [
|
||||
pyarrow
|
||||
];
|
||||
fss = [
|
||||
fsspec
|
||||
];
|
||||
gcp = [
|
||||
gcsfs
|
||||
# TODO: pandas-gqb
|
||||
];
|
||||
hdf5 = [
|
||||
blosc2
|
||||
tables
|
||||
];
|
||||
html = [
|
||||
beautifulsoup4
|
||||
html5lib
|
||||
lxml
|
||||
];
|
||||
mysql = [
|
||||
sqlalchemy
|
||||
pymysql
|
||||
];
|
||||
output_formatting = [
|
||||
jinja2
|
||||
tabulate
|
||||
];
|
||||
parquet = [
|
||||
pyarrow
|
||||
];
|
||||
performance = [
|
||||
bottleneck
|
||||
numba
|
||||
numexpr
|
||||
];
|
||||
plot = [
|
||||
matplotlib
|
||||
];
|
||||
postgresql = [
|
||||
sqlalchemy
|
||||
psycopg2
|
||||
];
|
||||
spss = [
|
||||
pyreadstat
|
||||
];
|
||||
sql-other = [
|
||||
sqlalchemy
|
||||
];
|
||||
xml = [
|
||||
lxml
|
||||
];
|
||||
};
|
||||
in extras // {
|
||||
all = lib.concatLists (lib.attrValues extras);
|
||||
};
|
||||
|
||||
# Doesn't work with -Werror,-Wunused-command-line-argument
|
||||
# https://github.com/NixOS/nixpkgs/issues/39687
|
||||
hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow";
|
||||
|
||||
doCheck = !stdenv.isAarch32 && !stdenv.isAarch64; # upstream doesn't test this architecture
|
||||
nativeCheckInputs = [
|
||||
glibcLocales
|
||||
hypothesis
|
||||
pytest-asyncio
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
] ++ lib.optionals (stdenv.isLinux) [
|
||||
# for locale executable
|
||||
glibc
|
||||
] ++ lib.optionals (stdenv.isDarwin) [
|
||||
# for locale executable
|
||||
adv_cmds
|
||||
];
|
||||
|
||||
# don't max out build cores, it breaks tests
|
||||
dontUsePytestXdist = true;
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
pytestFlagsArray = [
|
||||
# https://github.com/pandas-dev/pandas/blob/main/test_fast.sh
|
||||
"--skip-db"
|
||||
"--skip-slow"
|
||||
"--skip-network"
|
||||
"-m" "'not single_cpu'"
|
||||
"-m" "'not single_cpu and not slow_arm'"
|
||||
"--numprocesses" "4"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Locale-related
|
||||
"test_names"
|
||||
"test_dt_accessor_datetime_name_accessors"
|
||||
"test_datetime_name_accessors"
|
||||
# Disable IO related tests because IO data is no longer distributed
|
||||
"io"
|
||||
# Tries to import from pandas.tests post install
|
||||
"util_in_top_level"
|
||||
# Tries to import compiled C extension locally
|
||||
"test_missing_required_dependency"
|
||||
# AssertionError with 1.2.3
|
||||
"test_from_coo"
|
||||
# AssertionError: No common DType exists for the given inputs
|
||||
"test_comparison_invalid"
|
||||
# AssertionError: Regex pattern '"quotechar" must be string, not int'
|
||||
"python-kwargs2"
|
||||
# Tests for rounding errors and fails if we have better precision
|
||||
# than expected, e.g. on amd64 with FMA or on arm64
|
||||
# https://github.com/pandas-dev/pandas/issues/38921
|
||||
"test_rolling_var_numerical_issues"
|
||||
# Requires mathplotlib
|
||||
"test_subset_for_boolean_cols"
|
||||
# DeprecationWarning from numpy
|
||||
"test_sort_values_sparse_no_warning"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"test_locale"
|
||||
"test_clipboard"
|
||||
# ValueError: cannot reindex on an axis with duplicate labels
|
||||
#
|
||||
# Attempts to reproduce this problem outside of Hydra failed.
|
||||
"test_reindex_timestamp_with_fold"
|
||||
# AssertionError: Did not see expected warning of class 'FutureWarning'
|
||||
"test_parsing_tzlocal_deprecated"
|
||||
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
|
||||
# tests/generic/test_finalize.py::test_binops[and_-args4-right] - AssertionError: assert {} == {'a': 1}
|
||||
"test_binops"
|
||||
];
|
||||
|
||||
# Tests have relative paths, and need to reference compiled C extensions
|
||||
# so change directory where `import .test` is able to be resolved
|
||||
preCheck = ''
|
||||
cd $out/${python.sitePackages}/pandas
|
||||
export HOME=$TMPDIR
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
||||
cd $out/${python.sitePackages}/pandas
|
||||
''
|
||||
# TODO: Get locale and clipboard support working on darwin.
|
||||
# Until then we disable the tests.
|
||||
@@ -121,19 +225,24 @@ buildPythonPackage rec {
|
||||
export PATH=$(pwd):$PATH
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
pythonImportsCheck = [ "pandas" ];
|
||||
pythonImportsCheck = [
|
||||
"pandas"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
# https://github.com/pandas-dev/pandas/issues/14866
|
||||
# pandas devs are no longer testing i686 so safer to assume it's broken
|
||||
broken = stdenv.isi686;
|
||||
homepage = "https://pandas.pydata.org/";
|
||||
changelog = "https://pandas.pydata.org/docs/whatsnew/index.html";
|
||||
description = "Python Data Analysis Library";
|
||||
description = "Powerful data structures for data analysis, time series, and statistics";
|
||||
downloadPage = "https://github.com/pandas-dev/pandas";
|
||||
homepage = "https://pandas.pydata.org";
|
||||
license = licenses.bsd3;
|
||||
longDescription = ''
|
||||
Flexible and powerful data analysis / manipulation library for
|
||||
Python, providing labeled data structures similar to R data.frame
|
||||
objects, statistical functions, and much more.
|
||||
'';
|
||||
maintainers = with maintainers; [ raskin fridh knedlsepp ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pdm-backend";
|
||||
version = "2.1.1";
|
||||
version = "2.1.4";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pdm-project";
|
||||
repo = "pdm-backend";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-g8VL5nO180XplMgbbeeJIp6lmbWcMKdY/IftlkL6e5U=";
|
||||
hash = "sha256-46HTamiy+8fiGVeviYqXsjwu+PEBE38y19cBVRc+zm0=";
|
||||
};
|
||||
|
||||
env.PDM_BUILD_SCM_VERSION = version;
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pdm-pep517";
|
||||
version = "1.1.2";
|
||||
version = "1.1.4";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-1PpzWmRffpWmvrNKK19+jgDZPdBDnXPzHMguQLW4/c4=";
|
||||
hash = "sha256-f0kSHnC0Lcopb6yWIhDdLaB6OVdfxWcxN61mFjOyzz8=";
|
||||
};
|
||||
|
||||
preCheck = ''
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
, fetchFromGitHub
|
||||
, hypothesis
|
||||
, pythonOlder
|
||||
, importlib-metadata
|
||||
, jbig2dec
|
||||
, deprecation
|
||||
, lxml
|
||||
@@ -19,14 +18,13 @@
|
||||
, python-xmp-toolkit
|
||||
, qpdf
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, substituteAll
|
||||
, wheel
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pikepdf";
|
||||
version = "7.2.0";
|
||||
version = "8.2.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@@ -41,7 +39,7 @@ buildPythonPackage rec {
|
||||
postFetch = ''
|
||||
rm "$out/.git_archival.txt"
|
||||
'';
|
||||
hash = "sha256-acGIhIWC1nUQiN0iwb1kLKxz+ytIqYIW4VXF45Tx50g=";
|
||||
hash = "sha256-8uPPEoLxoMRq/tkpThatwjPHZIMYQ8lNL6fLcG+nsnw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -57,8 +55,6 @@ buildPythonPackage rec {
|
||||
--replace "shims_enabled = not cflags_defined" "shims_enabled = False"
|
||||
'';
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
buildInputs = [
|
||||
qpdf
|
||||
];
|
||||
@@ -66,7 +62,6 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [
|
||||
pybind11
|
||||
setuptools
|
||||
setuptools-scm
|
||||
wheel
|
||||
];
|
||||
|
||||
@@ -85,8 +80,6 @@ buildPythonPackage rec {
|
||||
lxml
|
||||
packaging
|
||||
pillow
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pikepdf" ];
|
||||
|
||||
@@ -13,25 +13,17 @@
|
||||
|
||||
import ./generic.nix (rec {
|
||||
pname = "pillow";
|
||||
version = "9.5.0";
|
||||
format = "setuptools";
|
||||
version = "10.0.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Pillow";
|
||||
inherit version;
|
||||
hash = "sha256-v1SEedM2cm16Ds6252fhefveN4M65CeUYCYxoHDWMPE=";
|
||||
hash = "sha256-nIK1s+BDx68NlXktDSDM9o9hof7Gs1MOcYtohCJyc5Y=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# Fixed type handling for include and lib directories; Remove with 10.0.0
|
||||
url = "https://github.com/python-pillow/Pillow/commit/0ec0a89ead648793812e11739e2a5d70738c6be5.patch";
|
||||
hash = "sha256-m5R5fLflnbJXbRxFlTjT2X3nKdC05tippMoJUDsJmy0=";
|
||||
})
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
inherit imageio matplotlib pilkit pydicom reportlab;
|
||||
};
|
||||
|
||||
@@ -2,10 +2,15 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, importlib-metadata
|
||||
, packaging
|
||||
# Check Inputs
|
||||
|
||||
# propagates
|
||||
, typing-extensions
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
, pytest-subtests
|
||||
, numpy
|
||||
@@ -15,20 +20,25 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pint";
|
||||
version = "0.20.1";
|
||||
version = "0.22";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "Pint";
|
||||
hash = "sha256-OHzwQHjcff5KcIAzuq1Uq2HYKrBsTuPUkiseRdViYGc=";
|
||||
hash = "sha256-LROfarvPMBbK19POwFcH/pCKxPmc9Zrt/W7mZ7emRDM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ packaging ]
|
||||
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
||||
propagatedBuildInputs = [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
@@ -38,13 +48,17 @@ buildPythonPackage rec {
|
||||
uncertainties
|
||||
];
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# https://github.com/hgrecco/pint/issues/1825
|
||||
"test_equal_zero_nan_NP"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/hgrecco/pint/blob/${version}/CHANGES";
|
||||
description = "Physical quantities module";
|
||||
license = licenses.bsd3;
|
||||
homepage = "https://github.com/hgrecco/pint/";
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "platformdirs";
|
||||
version = "3.5.1";
|
||||
version = "3.9.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-/qi22jiF+P7XcG/D+dxoOrHk89amdBoGewrTqZZOsoM=";
|
||||
hash = "sha256-gBiXdnBWp0SlpE6TQPONTXEsQ2XFGCANGdNM/gv7V5s=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
@@ -1,31 +1,40 @@
|
||||
{ buildPythonPackage
|
||||
, lib
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, setuptools-scm
|
||||
, pythonOlder
|
||||
, importlib-metadata
|
||||
, callPackage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pluggy";
|
||||
version = "1.0.0";
|
||||
version = "1.2.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159";
|
||||
src = fetchFromGitHub {
|
||||
owner = "pytest-dev";
|
||||
repo = "pluggy";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-SzJu7ITdmUgusn8sz6fRBpxTMQncWIViP5NCAj4q4GM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
|
||||
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
# To prevent infinite recursion with pytest
|
||||
doCheck = false;
|
||||
passthru.tests = {
|
||||
pytest = callPackage ./tests.nix { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/pytest-dev/pluggy/blob/${src.rev}/CHANGELOG.rst";
|
||||
description = "Plugin and hook calling mechanisms for Python";
|
||||
homepage = "https://github.com/pytest-dev/pluggy";
|
||||
license = lib.licenses.mit;
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
{ buildPythonPackage
|
||||
, pluggy
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "pluggy-tests";
|
||||
inherit (pluggy) version;
|
||||
format = "other";
|
||||
|
||||
inherit (pluggy) src;
|
||||
|
||||
dontBuild = true;
|
||||
dontInstall = true;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pluggy
|
||||
pytestCheckHook
|
||||
];
|
||||
}
|
||||
@@ -11,7 +11,6 @@
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, setuptools
|
||||
, tomlkit
|
||||
, virtualenv
|
||||
}:
|
||||
|
||||
@@ -54,7 +53,6 @@ buildPythonPackage rec {
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
setuptools
|
||||
tomlkit
|
||||
virtualenv
|
||||
];
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "prance";
|
||||
version = "0.22.02.22.0";
|
||||
version = "23.06.21.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@@ -28,7 +28,7 @@ buildPythonPackage rec {
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-NtIbZp34IcMYJzaNQVL9GLdNS3NYOCRoWS1wGg/gLVA=";
|
||||
hash = "sha256-p+LZbQal4DPeMp+eJ2O83rCaL+QIUDcU34pZhYdN4bE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -70,6 +70,7 @@ buildPythonPackage rec {
|
||||
"test_convert_defaults"
|
||||
"test_convert_output"
|
||||
"test_fetch_url_http"
|
||||
"test_openapi_spec_validator_validate_failure"
|
||||
];
|
||||
pythonImportsCheck = [ "prance" ];
|
||||
|
||||
|
||||
@@ -24,13 +24,13 @@
|
||||
} ./setup-hook.sh;
|
||||
in buildPythonPackage rec {
|
||||
pname = "pybind11";
|
||||
version = "2.10.4";
|
||||
version = "2.11.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pybind";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-n7nLEG2+sSR9wnxM+C8FWc2B+Mx74Pan1+IQf+h2bGU=";
|
||||
hash = "sha256-sO/Fa+QrAKyq2EYyYMcjPrYI+bdJIrDoj6L3JHoDo3E=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -87,7 +87,7 @@ in buildPythonPackage rec {
|
||||
"tests/extra_setuptools/test_setuphelper.py"
|
||||
];
|
||||
|
||||
disabledTests = lib.optionals (stdenv.isDarwin) [
|
||||
disabledTests = lib.optionals stdenv.isDarwin [
|
||||
# expects KeyError, gets RuntimeError
|
||||
# https://github.com/pybind/pybind11/issues/4243
|
||||
"test_cross_module_exception_translator"
|
||||
|
||||
@@ -10,14 +10,14 @@ let
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "pycryptodome";
|
||||
version = "3.17.0";
|
||||
version = "3.18.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Legrandin";
|
||||
repo = "pycryptodome";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-xsfd+dbaNOPuD0ulvpLPBPtcFgmJqX1VuunwNMcqh+Q=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-6oXXy18KlSjfyZhfMnIgnu34u/9sG0TPYvPJ8ovTqMA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -36,6 +36,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Self-contained cryptographic library";
|
||||
homepage = "https://github.com/Legrandin/pycryptodome";
|
||||
changelog = "https://github.com/Legrandin/pycryptodome/blob/v${version}/Changelog.rst";
|
||||
license = with licenses; [ bsd2 /* and */ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygments_better_html";
|
||||
version = "0.1.4";
|
||||
version = "0.1.5";
|
||||
disabled = ! isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "028szd3k295yhz943bj19i4kx6f0pfh1fd2q14id0g84dl4i49dm";
|
||||
sha256 = "sha256-SLAe5ubIGEchUNoHCct6CWisBja3WNEfpE48v9CTzPQ=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pygments ];
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, docutils
|
||||
, lxml
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
, wcag-contrast-ratio
|
||||
}:
|
||||
@@ -10,22 +13,23 @@
|
||||
let pygments = buildPythonPackage
|
||||
rec {
|
||||
pname = "pygments";
|
||||
version = "2.14.0";
|
||||
version = "2.15.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Pygments";
|
||||
inherit version;
|
||||
hash = "sha256-s+0GqeismpquWm9dvniopYZV0XtDuTwHjwlN3Edq4pc=";
|
||||
hash = "sha256-is5NPB3UgYlLIAX1YOrQ+fGe5k/pgzZr4aIeFx0Sd1w=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
docutils
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
# circular dependencies if enabled by default
|
||||
doCheck = false;
|
||||
|
||||
nativeCheckInputs = [
|
||||
lxml
|
||||
pytestCheckHook
|
||||
wcag-contrast-ratio
|
||||
];
|
||||
@@ -35,13 +39,16 @@ let pygments = buildPythonPackage
|
||||
"tests/examplefiles/bash/ltmain.sh"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pygments" ];
|
||||
pythonImportsCheck = [
|
||||
"pygments"
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
check = pygments.overridePythonAttrs (_: { doCheck = true; });
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/pygments/pygments/releases/tag/${version}";
|
||||
homepage = "https://pygments.org/";
|
||||
description = "A generic syntax highlighter";
|
||||
mainProgram = "pygmentize";
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyjwt";
|
||||
version = "2.7.0";
|
||||
version = "2.8.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||
src = fetchPypi {
|
||||
pname = "PyJWT";
|
||||
inherit version;
|
||||
hash = "sha256-vWyko8QoXBotQ0nloDX9+PuU4EzND8vmuiidrpzD4HQ=";
|
||||
hash = "sha256-V+KNFW49XBAIjgxoq7kL+sPfgrQKcb0NqiDGXM1cI94=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -45,6 +45,11 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
] ++ (lib.flatten (lib.attrValues passthru.optional-dependencies));
|
||||
|
||||
disabledTests = [
|
||||
# requires internet connection
|
||||
"test_get_jwt_set_sslcontext_default"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "jwt" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylint";
|
||||
version = "2.16.2";
|
||||
version = "2.17.5";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7.2";
|
||||
@@ -31,7 +31,7 @@ buildPythonPackage rec {
|
||||
owner = "PyCQA";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-xNCGf4CsxEKScIn6dl2Ka31P6bhMo5fTs9TIQz+vPiM=";
|
||||
hash = "sha256-cmH6Q6/XJXx8EXDIsik1Aheu9hYGvvlNvWBUCdmC3P8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -68,6 +68,7 @@ buildPythonPackage rec {
|
||||
# implementation relies on the '__implements__' attribute proposed
|
||||
# in PEP 245, which was rejected in 2006.
|
||||
"-W" "ignore::DeprecationWarning"
|
||||
"-v"
|
||||
];
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyopenssl";
|
||||
version = "23.1.1";
|
||||
version = "23.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "pyOpenSSL";
|
||||
inherit version;
|
||||
hash = "sha256-hBSYub7GFiOxtsR+u8AjZ8B9YODhlfGXkIF/EMyNsLc=";
|
||||
hash = "sha256-J2+TH1WkUufeppxxc+mE6ypEB85BPJGKo0tV+C+bi6w=";
|
||||
};
|
||||
|
||||
outputs = [
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
, fixtures
|
||||
, mock
|
||||
, pbr
|
||||
, pytest-cov
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, testtools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -29,8 +29,8 @@ buildPythonPackage rec {
|
||||
nativeCheckInputs = [
|
||||
fixtures
|
||||
mock
|
||||
pytest-cov
|
||||
pytestCheckHook
|
||||
testtools
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-asyncio";
|
||||
version = "0.20.3";
|
||||
version = "0.21.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||
owner = "pytest-dev";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-oq28wJ/Tq4yuQ/98tdzYKDyatpliS0Xcbc6T46ZTP7I=";
|
||||
hash = "sha256-Wpo8MpCPGiXrckT2x5/yBYtGlzso/L2urG7yGc7SPkA=";
|
||||
};
|
||||
|
||||
outputs = [
|
||||
@@ -54,7 +54,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Library for testing asyncio code with pytest";
|
||||
homepage = "https://github.com/pytest-dev/pytest-asyncio";
|
||||
changelog = "https://github.com/pytest-dev/pytest-asyncio/blob/v${version}/CHANGELOG.rst";
|
||||
changelog = "https://github.com/pytest-dev/pytest-asyncio/blob/v${version}/docs/source/reference/changelog.rst";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
|
||||
@@ -10,6 +10,8 @@ buildPythonPackage {
|
||||
pname = "pytest-asyncio-tests";
|
||||
inherit (pytest-asyncio) version;
|
||||
|
||||
format = "other";
|
||||
|
||||
src = pytest-asyncio.testout;
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-cov";
|
||||
version = "4.0.0";
|
||||
version = "4.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-mWt5795kM829AIiHLbxfs+1/4VeLaM27pjTxS7jdBHA=";
|
||||
hash = "sha256-OQSxPfv+xH8AO453/VtYnNEZBKId3xqzimTyBNahDvY=";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
@@ -9,13 +9,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-env";
|
||||
version = "0.8.1";
|
||||
version = "0.8.2";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "pytest_env";
|
||||
inherit version;
|
||||
hash = "sha256-17L1Jz7G0eIhdXmYvC9Q0kdO19C5MxuSVWAR+txOmr8=";
|
||||
hash = "sha256-uu2bO2uud711uSOODtHuaQOkKAaunWrv+4dUzVWE1P8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -1,42 +1,59 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, factory_boy
|
||||
, fetchFromGitHub
|
||||
, inflection
|
||||
, mock
|
||||
|
||||
# build-system
|
||||
, poetry-core
|
||||
|
||||
# unpropagated
|
||||
, pytest
|
||||
, pytestcache
|
||||
|
||||
# propagated
|
||||
, inflection
|
||||
, factory_boy
|
||||
, typing-extensions
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
, pytest-cov
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-factoryboy";
|
||||
version = "2.1.0";
|
||||
version = "2.5.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pytest-dev";
|
||||
repo = "pytest-factoryboy";
|
||||
rev = version;
|
||||
sha256 = "0v6b4ly0p8nknpnp3f4dbslfsifzzjx2vv27rfylx04kzdhg4m9p";
|
||||
sha256 = "sha256-zxgezo2PRBKs0mps0qdKWtBygunzlaxg8s9BoBaU1Ig=";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
factory_boy
|
||||
inflection
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pytest_factoryboy"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytestcache
|
||||
pytest-cov
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "--ignore=docs" ];
|
||||
pythonImportsCheck = [ "pytest_factoryboy" ];
|
||||
pytestFlagsArray = [
|
||||
"--ignore=docs"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Integration of factory_boy into the pytest runner";
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-httpserver";
|
||||
version = "1.0.6";
|
||||
version = "1.0.7";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||
owner = "csernazs";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-LY5Ur0cIcsNrgvyQlY2E479ZzRcuwqTuiT2MtRupVcs=";
|
||||
hash = "sha256-bjysG+7niSUBl8YMWR8pr7oOz9GDbSfq3PeloYBkq3s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user