Merge pull request #245894 from natsukium/backports/remove

python310Packages.backports_*: remove
This commit is contained in:
Martin Weinelt 2023-07-28 23:15:08 +02:00 committed by GitHub
commit e8d56b900b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 8 additions and 169 deletions

View file

@ -1,20 +0,0 @@
{ lib, buildPythonPackage, fetchPypi, future }:
buildPythonPackage rec {
pname = "backports.csv";
version = "1.0.7";
src = fetchPypi {
inherit pname version;
sha256 = "0vdx5jlhs91iizc8j8l8811nqprwvdx39pgkdc82w2qkfgzxyxqj";
};
propagatedBuildInputs = [ future ];
meta = with lib; {
description = "Backport of Python 3 csv module";
homepage = "https://github.com/ryanhiebert";
license = licenses.psfl;
};
}

View file

@ -1,32 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, isPy3k
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "backports.functools_lru_cache";
version = "1.6.4";
src = fetchPypi {
inherit pname version;
sha256 = "d5ed2169378b67d3c545e5600d363a923b09c456dab1593914935a68ad478271";
};
nativeBuildInputs = [ setuptools-scm ];
nativeCheckInputs = [ pytestCheckHook ];
# Test fail on Python 2
doCheck = isPy3k;
pythonNamespaces = [ "backports" ];
meta = {
description = "Backport of functools.lru_cache";
homepage = "https://github.com/jaraco/backports.functools_lru_cache";
license = lib.licenses.mit;
};
}

View file

@ -1,34 +0,0 @@
{ lib
, unittestCheckHook
, buildPythonPackage
, fetchPypi
, setuptools-scm
, backports_weakref
}:
buildPythonPackage rec {
pname = "backports.tempfile";
version = "1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1c648c452e8770d759bdc5a5e2431209be70d25484e1be24876cf2168722c762";
};
buildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ backports_weakref ];
# requires https://pypi.org/project/backports.test.support
doCheck = false;
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "-s" "tests" ];
meta = {
description = "Backport of new features in Python's tempfile module";
license = lib.licenses.psfl;
homepage = "https://github.com/pjdelport/backports.tempfile";
};
}

View file

@ -1,26 +0,0 @@
{ lib, buildPythonPackage, fetchPypi, setuptools-scm, mock }:
buildPythonPackage rec {
pname = "backports.unittest_mock";
version = "1.5";
src = fetchPypi {
inherit pname version;
sha256 = "eff58e53de8fdeb27a1c87a9d57e7b91d15d1bc3854e85344b1a2e69f31ecda7";
};
propagatedBuildInputs = [ mock ];
buildInputs = [ setuptools-scm ];
# does not contain tests
doCheck = false;
pythonImportsCheck = [ "backports.unittest_mock" ];
meta = with lib; {
description = "Provides a function install() which makes the mock module";
homepage = "https://github.com/jaraco/backports.unittest_mock";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

View file

@ -1,32 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
# , backports
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "backports.weakref";
version = "1.0.post1";
src = fetchPypi {
inherit pname version;
sha256 = "bc4170a29915f8b22c9e7c4939701859650f2eb84184aee80da329ac0b9825c2";
};
buildInputs = [ setuptools-scm ];
# nativeCheckInputs = [ backports ];
# Requires backports package
doCheck = false;
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "tests" ];
meta = with lib; {
description = "Backports of new features in Pythons weakref module";
license = licenses.psfl;
maintainers = with maintainers; [ jyp ];
};
}

View file

@ -2,7 +2,6 @@
, buildPythonPackage
, fetchPypi
, pythonOlder
, backports_csv
, configobj
, mock
, pytestCheckHook

View file

@ -3,7 +3,6 @@
, fetchPypi
, hatchling
, isPy3k
, backports_functools_lru_cache
}:
buildPythonPackage rec {

View file

@ -1,5 +1,4 @@
{ lib
, backports_unittest-mock
, buildPythonPackage
, fetchPypi
, pytestCheckHook
@ -26,7 +25,6 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
backports_unittest-mock
pytestCheckHook
];

View file

@ -18,7 +18,6 @@
, wheel
, jax
, opt-einsum
, backports_weakref
, tensorflow-estimator-bin
, tensorboard
, config
@ -83,8 +82,7 @@ in buildPythonPackage {
keras-applications
keras-preprocessing
h5py
] ++ lib.optional (!isPy3k) mock
++ lib.optionals (pythonOlder "3.4") [ backports_weakref ];
] ++ lib.optional (!isPy3k) mock;
nativeBuildInputs = [ wheel ] ++ lib.optionals cudaSupport [ addOpenGLRunpath ];

View file

@ -1,6 +1,4 @@
{ lib, fetchPypi, buildPythonPackage, pytestCheckHook
, isPy3k
, backports_functools_lru_cache
, setuptools
}:
@ -15,9 +13,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
propagatedBuildInputs = [ setuptools ] ++ lib.optionals (!isPy3k) [
backports_functools_lru_cache
];
propagatedBuildInputs = [ setuptools ];
# To prevent infinite recursion with pytest
doCheck = false;

View file

@ -2963,9 +2963,7 @@ lib.composeManyExtensions [
});
wcwidth = super.wcwidth.overridePythonAttrs (old: {
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++
lib.optional self.isPy27 (self.backports-functools-lru-cache or self.backports_functools_lru_cache)
;
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]);
});
wtforms = super.wtforms.overridePythonAttrs (old: {

View file

@ -48,6 +48,11 @@ mapAliases ({
asyncio-nats-client = nats-py; # added 2022-02-08
awkward0 = throw "awkward0 has been removed, use awkward instead"; # added 2022-12-13
Babel = babel; # added 2022-05-06
backports_csv = throw "backports_csv has been removed, since we no longer need to backport to python2"; # added 2023-07-28
backports_functools_lru_cache = throw "backports_functools_lru_cache has been removed, since we no longer need to backport to python3.2"; # added 2023-07-28
backports_tempfile = throw "backports_tempfile has been removed, since we no longer need to backport to python3.3"; # added 2023-07-28
backports_unittest-mock = throw "backports_unittest-mock has been removed, since we no longer need to backport to python3.2"; # added 2023-07-28
backports_weakref = throw "backports_weakref has been removed, since we no longer need to backport to python3.3"; # added 2023-07-28
bedup = throw "bedup was removed because it was broken and abandoned upstream"; # added 2023-02-04
bitcoin-price-api = throw "bitcoin-price-api has been removed, it was using setuptools 2to3 translation feautre, which has been removed in setuptools 58"; # added 2022-02-15
BlinkStick = blinkstick; # added 2023-02-19

View file

@ -1199,24 +1199,14 @@ self: super: with self; {
backports-cached-property = callPackage ../development/python-modules/backports-cached-property { };
backports_csv = callPackage ../development/python-modules/backports_csv { };
backports-datetime-fromisoformat = callPackage ../development/python-modules/backports-datetime-fromisoformat { };
backports-entry-points-selectable = callPackage ../development/python-modules/backports-entry-points-selectable { };
backports_functools_lru_cache = callPackage ../development/python-modules/backports_functools_lru_cache { };
backports_shutil_get_terminal_size = callPackage ../development/python-modules/backports_shutil_get_terminal_size { };
backports-shutil-which = callPackage ../development/python-modules/backports-shutil-which { };
backports_tempfile = callPackage ../development/python-modules/backports_tempfile { };
backports_unittest-mock = callPackage ../development/python-modules/backports_unittest-mock { };
backports_weakref = callPackage ../development/python-modules/backports_weakref { };
backports-zoneinfo = callPackage ../development/python-modules/backports-zoneinfo { };
bacpypes = callPackage ../development/python-modules/bacpypes { };