Merge pull request #221432 from dotlambda/etils-1.1.0

python310Packages.etils: 1.0.0 -> 1.1.0
This commit is contained in:
Robert Schütz 2023-03-23 10:07:20 -07:00 committed by GitHub
commit 0f7a300b2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 7 deletions

View File

@ -35,6 +35,11 @@ buildPythonPackage rec {
hash = "sha256-nbPMLkTye0/Q05ubE35LssN677sUIQErPTxjAtSuGgI="; hash = "sha256-nbPMLkTye0/Q05ubE35LssN677sUIQErPTxjAtSuGgI=";
}; };
postPatch = ''
substituteInPlace requirements-runtime.txt \
--replace "pytest" ""
'';
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
cython cython

View File

@ -28,14 +28,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "etils"; pname = "etils";
version = "1.0.0"; version = "1.1.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-0QmC93AkIr6oY11ShLi+1in1GRn8EirB4eSr9F7I94U="; hash = "sha256-eipJUHeaKB70x+WVriFZkLFcHYxviwonhQCSr1rSxkE=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -44,6 +44,7 @@ buildPythonPackage rec {
passthru.optional-dependencies = rec { passthru.optional-dependencies = rec {
array-types = enp; array-types = enp;
eapp = [ absl-py /* FIXME package simple-parsing */ ] ++ epy;
ecolab = [ jupyter numpy mediapy ] ++ enp ++ epy; ecolab = [ jupyter numpy mediapy ] ++ enp ++ epy;
edc = epy; edc = epy;
enp = [ numpy ] ++ epy; enp = [ numpy ] ++ epy;
@ -53,8 +54,8 @@ buildPythonPackage rec {
etree = array-types ++ epy ++ enp ++ etqdm; etree = array-types ++ epy ++ enp ++ etqdm;
etree-dm = [ dm-tree ] ++ etree; etree-dm = [ dm-tree ] ++ etree;
etree-jax = [ jax ] ++ etree; etree-jax = [ jax ] ++ etree;
etree-tf = [ tensorflow etree ] ++ etree; etree-tf = [ tensorflow ] ++ etree;
all = array-types ++ ecolab ++ edc ++ enp ++ epath ++ epy ++ etqdm all = array-types ++ eapp ++ ecolab ++ edc ++ enp ++ epath ++ epy ++ etqdm
++ etree ++ etree-dm ++ etree-jax ++ etree-tf; ++ etree ++ etree-dm ++ etree-jax ++ etree-tf;
}; };
@ -73,14 +74,13 @@ buildPythonPackage rec {
++ passthru.optional-dependencies.all; ++ passthru.optional-dependencies.all;
disabledTests = [ disabledTests = [
"test_repr" # known to fail on Python 3.10, see https://github.com/google/etils/issues/143
"test_public_access" # requires network access "test_public_access" # requires network access
"test_resource_path" # known to fail on Python 3.10, see https://github.com/google/etils/issues/143
]; ];
doCheck = false; # error: infinite recursion encountered doCheck = false; # error: infinite recursion encountered
meta = with lib; { meta = with lib; {
changelog = "https://github.com/google/etils/blob/v${version}/CHANGELOG.md";
description = "Collection of eclectic utils for python"; description = "Collection of eclectic utils for python";
homepage = "https://github.com/google/etils"; homepage = "https://github.com/google/etils";
license = licenses.asl20; license = licenses.asl20;

View File

@ -25,6 +25,11 @@ buildPythonPackage rec {
hash = "sha256-wKbCIA6Xp+VYhcQ5ZpHo5usB+ksnMAJyv5naBvl4Cxo="; hash = "sha256-wKbCIA6Xp+VYhcQ5ZpHo5usB+ksnMAJyv5naBvl4Cxo=";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace "python_requires='>=3.7.*'" "python_requires='>=3.7'"
'';
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -55,6 +55,7 @@ buildPythonPackage rec {
--replace "return 0" "assert result.wasSuccessful(); return 0" \ --replace "return 0" "assert result.wasSuccessful(); return 0" \
--replace "return 1" "assert result.wasSuccessful(); return 1" --replace "return 1" "assert result.wasSuccessful(); return 1"
substituteInPlace requirements.txt \ substituteInPlace requirements.txt \
--replace "cython>=0.29.21" "" \
--replace "blosc2~=2.0.0" "blosc2" --replace "blosc2~=2.0.0" "blosc2"
''; '';

View File

@ -9,6 +9,8 @@ buildPythonPackage rec {
pname = "testcontainers"; pname = "testcontainers";
version = "3.7.1"; version = "3.7.1";
format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "testcontainers"; owner = "testcontainers";
repo = "testcontainers-python"; repo = "testcontainers-python";
@ -16,6 +18,10 @@ buildPythonPackage rec {
hash = "sha256-OHuvUi5oa0fVcfo0FW9XwaUp52MEH4NTM6GqK4ic0oM="; hash = "sha256-OHuvUi5oa0fVcfo0FW9XwaUp52MEH4NTM6GqK4ic0oM=";
}; };
postPatch = ''
echo "${version}" > VERSION
'';
buildInputs = [ buildInputs = [
deprecation deprecation
docker docker