treewide: drop python 3.4 checks

This commit is contained in:
Sigmanificient 2024-05-16 22:19:08 +02:00
parent 5d5c4baad8
commit 05fa591701
28 changed files with 10 additions and 94 deletions

View File

@ -1,10 +1,10 @@
{ lib, buildPythonApplication, fetchPypi, pythonOlder
{ lib, buildPythonApplication, fetchPypi
, installShellFiles
, mock, pytest, nose
, pyyaml, colorama, docopt
, dockerpty, docker, jsonschema, requests
, six, texttable, websocket-client, cached-property
, enum34, paramiko, distro, python-dotenv
, paramiko, distro, python-dotenv
}:
buildPythonApplication rec {
@ -24,8 +24,7 @@ buildPythonApplication rec {
pyyaml colorama dockerpty docker
jsonschema requests six texttable websocket-client
docopt cached-property paramiko distro python-dotenv
]
++ lib.optional (pythonOlder "3.4") enum34;
];
postPatch = ''
# Remove upper bound on requires, see also

View File

@ -3,15 +3,12 @@
, fetchPypi
, pyserial
, pyudev
, pythonOlder
}:
buildPythonApplication rec {
pname = "rshell";
version = "0.0.32";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-frIwZ21JzVgxRS+KouBjDShHCP1lCoUwwySy2oFGcJ8=";

View File

@ -1,10 +1,8 @@
{ buildPythonPackage
, lib
, pythonOlder
, fetchPypi
, setuptools
, six
, enum34
}:
buildPythonPackage rec {
@ -23,8 +21,6 @@ buildPythonPackage rec {
propagatedBuildInputs = [
six
] ++ lib.optionals (pythonOlder "3.4") [
enum34
];
# checks use bazel; should be revisited

View File

@ -1,7 +1,6 @@
{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
, attrs
, pluggy
, six
@ -15,8 +14,6 @@ buildPythonPackage rec {
version = "2.13.5";
format = "setuptools";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-pWkLVfBrLEhdhuTE95K3aqrhEY2wEyo5uRzuJC3ngjE=";

View File

@ -2,8 +2,6 @@
, buildPythonPackage
, fetchFromGitHub
, pycrypto
, pythonOlder
, enum34
, python
}:
@ -21,7 +19,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
pycrypto
] ++ lib.optional (pythonOlder "3.4") enum34;
];
checkPhase = ''
${python.interpreter} -m android_backup.tests

View File

@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
numpy,
scipy,
@ -16,10 +15,6 @@ buildPythonPackage rec {
version = "0.6.1";
pyproject = true;
# Python 2 not supported and not some old Python 3 because MPL doesn't support
# them properly.
disabled = pythonOlder "3.4";
src = fetchFromGitHub {
owner = "bayespy";
repo = "bayespy";

View File

@ -1,6 +1,5 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, docopt
, pytz
@ -16,8 +15,6 @@ buildPythonPackage rec {
version = "1.0.5";
format = "setuptools";
disabled = pythonOlder "3.4";
src = fetchFromGitHub {
owner = "mjj4791";
repo = "python-buienradar";

View File

@ -1,12 +1,8 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, urllib3
, pyopenssl
, cryptography
, idna
, certifi
}:
@ -15,8 +11,6 @@ buildPythonPackage rec {
version = "0.4.4";
pyproject = true;
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-UCxIDnhIAkxZ1oQXYRyAMdGgUsUZ6AlYXwsxL49TFAg=";

View File

@ -1,6 +1,5 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, setuptools
}:
@ -10,8 +9,6 @@ buildPythonPackage rec {
version = "0.0.4";
pyproject = true;
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-m7nQzbxRe2qXUWAMeQlDZtc9F01DsbTzF/kI0ci3TFE=";

View File

@ -1,4 +1,4 @@
{ lib, pythonOlder, buildPythonPackage, fetchPypi, six, glibcLocales, pytest }:
{ lib, buildPythonPackage, fetchPypi, six, glibcLocales, pytest }:
buildPythonPackage rec {
pname = "hcs-utils";
@ -21,8 +21,6 @@ buildPythonPackage rec {
buildInputs = [ six glibcLocales ];
nativeCheckInputs = [ pytest ];
disabled = pythonOlder "3.4";
meta = with lib; {
description = "Library collecting some useful snippets";
homepage = "https://pypi.python.org/pypi/hcs_utils/1.3";

View File

@ -1,4 +1,4 @@
{ lib, fetchPypi, buildPythonPackage, docopt, pythonOlder }:
{ lib, fetchPypi, buildPythonPackage, docopt }:
buildPythonPackage rec {
pname = "httpserver";
@ -11,9 +11,6 @@ buildPythonPackage rec {
# drivers.
doCheck = false;
# Because it uses asyncio
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "1q62g324dvb0hqdwwrnj41sqr4d3ly78v9nc26rz1whj4pwdmhsv";

View File

@ -1,6 +1,6 @@
{ lib, buildPythonPackage, python, fetchFromGitHub
, fetchpatch
, cmake, sip4, protobuf, pythonOlder }:
, cmake, sip4, protobuf }:
buildPythonPackage rec {
pname = "libarcus";
@ -23,8 +23,6 @@ buildPythonPackage rec {
})
];
disabled = pythonOlder "3.4";
propagatedBuildInputs = [ sip4 ];
nativeBuildInputs = [ cmake ];
buildInputs = [ protobuf ];

View File

@ -6,7 +6,6 @@
, gast
, nbconvert
, nbformat
, pythonOlder
, pyyaml
}:
@ -15,8 +14,6 @@ buildPythonPackage rec {
version = "0.2.1";
format = "setuptools";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-6shwf9BoDfZMy0itP8esNP4ov6fw6LJpO3Y5ZahwDZw=";

View File

@ -5,8 +5,6 @@
, numpy
, pytestCheckHook
, pykka
, enum34
, pythonOlder
, pythonAtLeast
}:
@ -32,8 +30,6 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numpy
six
] ++ lib.optionals (pythonOlder "3.4") [
enum34
];
nativeCheckInputs = [

View File

@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, azure-core
, azure-identity
, opencensus
@ -14,8 +13,6 @@ buildPythonPackage rec {
version = "1.1.13";
format = "setuptools";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-rsMEchdwBTebpWpwKgl9YYxfV1WOG7ZnbsdflIEwaSo=";

View File

@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, attrs
, pytest
@ -11,8 +10,6 @@ buildPythonPackage rec {
pname = "outcome";
version = "1.3.0.post0";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-nc8C5l8pcbgAR7N3Ro5yomjhXArzzxI45v8U9/kRQ7g=";

View File

@ -2,8 +2,6 @@
, buildPythonPackage
, fetchPypi
, path
, pathlib2
, pythonOlder
}:
buildPythonPackage rec {
@ -16,8 +14,7 @@ buildPythonPackage rec {
sha256 = "87683d47965c1da65cdacaf31c8441d12b8044cdec9aca500cd78fc2c683afca";
};
propagatedBuildInputs = [ path ]
++ lib.optional (pythonOlder "3.4") pathlib2;
propagatedBuildInputs = [ path ];
# No proper test suite
doCheck = false;

View File

@ -1,10 +1,9 @@
{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, flake8 }:
{ lib, fetchFromGitHub, buildPythonPackage, flake8 }:
buildPythonPackage rec {
pname = "pure-cdb";
version = "4.0.0";
format = "setuptools";
disabled = pythonOlder "3.4";
# Archive on pypi has no tests.
src = fetchFromGitHub {

View File

@ -4,7 +4,6 @@
, fetchFromGitHub
, morphys
, pytestCheckHook
, pythonOlder
, six
, varint
}:
@ -14,8 +13,6 @@ buildPythonPackage rec {
version = "2.0.1";
format = "setuptools";
disabled = pythonOlder "3.4";
src = fetchFromGitHub {
owner = "multiformats";
repo = pname;

View File

@ -3,7 +3,6 @@
, buildPythonPackage
, click
, colorama
, enum34
, fetchPypi
, git
, gnugrep
@ -12,7 +11,6 @@
, pbr
, pexpect
, pythonAtLeast
, pythonOlder
, substituteAll
, tree
, xclip
@ -53,7 +51,7 @@ buildPythonPackage rec {
click
colorama
pexpect
] ++ lib.optional (pythonOlder "3.4") enum34;
];
nativeCheckInputs = [ nose ];

View File

@ -3,8 +3,6 @@
, buildPythonPackage
, fetchPypi
, unittestCheckHook
, pythonOlder
, isPy3k
}:
buildPythonPackage rec {
@ -12,9 +10,6 @@ buildPythonPackage rec {
version = "3.5";
format = "setuptools";
# Supports Python 2.7 and 3.4+
disabled = isPy3k && pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-PHfgFBcN//vYFub/wgXphC77EL6fWOwW0+hnW0klzds=";

View File

@ -1,7 +1,6 @@
{ stdenv
, buildPythonPackage
, lib
, python
, fetchPypi
, systemd
, lxml
@ -19,8 +18,6 @@ buildPythonPackage rec {
hash = "sha256-Tc+ksTpVaFxJ09F8EGMeyhjDN3D2Yxb47yM3uJUcwUQ=";
};
disabled = python.pythonOlder "3.4";
buildInputs = [ systemd ];
nativeBuildInputs = [ pkg-config ];

View File

@ -3,7 +3,6 @@
, buildPythonPackage
, fetchPypi
, mock
, pythonOlder
, repeated-test
, setuptools-scm
, sphinx
@ -15,8 +14,6 @@ buildPythonPackage rec {
version = "4.0.1";
format = "pyproject";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-S44TWpzU0uoA2mcMCTNy105nK6OruH9MmNjnPepURFw=";

View File

@ -1,6 +1,5 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, setuptools
}:
@ -10,8 +9,6 @@ buildPythonPackage rec {
version = "1.6.4";
pyproject = true;
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-vpxdvY3xKkBLFM2Oldb8AtWMYOJVX2Xd3kF3fEh/s7k=";

View File

@ -2,7 +2,6 @@
, buildPythonPackage
, decorator
, fetchPypi
, pythonOlder
, requests
}:
@ -10,7 +9,6 @@ buildPythonPackage rec {
pname = "stashy";
version = "0.7";
format = "setuptools";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;

View File

@ -1,10 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, pytestCheckHook
, pythonOlder
, spur
}:
buildPythonPackage rec {
@ -12,8 +8,6 @@ buildPythonPackage rec {
version = "0.2.1";
format = "setuptools";
disabled = pythonOlder "3.4";
src = fetchFromGitHub {
owner = "mwilliamson";
repo = pname;

View File

@ -2,14 +2,12 @@
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "xmltodict";
version = "0.13.0";
format = "setuptools";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;

View File

@ -6,7 +6,6 @@
python3Packages.buildPythonApplication rec {
pname = "litecli";
version = "1.11.0";
disabled = python3Packages.pythonOlder "3.4";
src = fetchPypi {
inherit pname version;