mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
python3Packages.dataclasses: drop
Only required on python36, which was dropped a while ago.
This commit is contained in:
parent
7bf27e562a
commit
df2d130ee0
@ -3,14 +3,12 @@
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
, pythonOlder
|
||||
, html5lib
|
||||
, invoke
|
||||
, openpyxl
|
||||
, poetry-core
|
||||
, tidylib
|
||||
, beautifulsoup4
|
||||
, dataclasses
|
||||
, datauri
|
||||
, docutils
|
||||
, jinja2
|
||||
@ -73,8 +71,6 @@ buildPythonApplication rec {
|
||||
textx
|
||||
xlrd
|
||||
XlsxWriter
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
@ -16,7 +16,6 @@
|
||||
, cron-descriptor
|
||||
, croniter
|
||||
, cryptography
|
||||
, dataclasses
|
||||
, deprecated
|
||||
, dill
|
||||
, flask
|
||||
@ -137,7 +136,7 @@ buildPythonPackage rec {
|
||||
inherit version;
|
||||
src = airflow-src;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
alembic
|
||||
@ -203,8 +202,6 @@ buildPythonPackage rec {
|
||||
typing-extensions
|
||||
unicodecsv
|
||||
werkzeug
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
importlib-metadata
|
||||
] ++ providerDependencies;
|
||||
|
@ -3,7 +3,6 @@
|
||||
, fetchFromGitHub
|
||||
, click
|
||||
, click-log
|
||||
, dataclasses
|
||||
, pure-pcapy3
|
||||
, pyserial-asyncio
|
||||
, voluptuous
|
||||
@ -34,8 +33,6 @@ buildPythonPackage rec {
|
||||
pyserial-asyncio
|
||||
voluptuous
|
||||
zigpy
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
@ -5,7 +5,6 @@
|
||||
, poetry-core
|
||||
, grpclib
|
||||
, python-dateutil
|
||||
, dataclasses
|
||||
, black
|
||||
, jinja2
|
||||
, isort
|
||||
@ -21,7 +20,7 @@ buildPythonPackage rec {
|
||||
pname = "betterproto";
|
||||
version = "2.0.0b5";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "danielgtaylor";
|
||||
@ -35,8 +34,6 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [
|
||||
grpclib
|
||||
python-dateutil
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
passthru.optional-dependencies.compiler = [
|
||||
|
@ -3,7 +3,6 @@
|
||||
, fetchPypi
|
||||
, curtsies
|
||||
, cwcwidth
|
||||
, dataclasses
|
||||
, greenlet
|
||||
, jedi
|
||||
, pygments
|
||||
@ -23,7 +22,7 @@ buildPythonPackage rec {
|
||||
version = "0.23";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@ -42,8 +41,6 @@ buildPythonPackage rec {
|
||||
typing-extensions
|
||||
urwid
|
||||
watchdog
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
@ -1,21 +0,0 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy36 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dataclasses";
|
||||
version = "0.8";
|
||||
|
||||
# backport only works on Python 3.6, and is in the standard library in Python 3.7
|
||||
disabled = !isPy36;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8479067f342acf957dc82ec415d355ab5edb7e7646b90dc6e2fd1d96ad084c97";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "An implementation of PEP 557: Data Classes";
|
||||
homepage = "https://github.com/ericvsmith/dataclasses";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ catern ];
|
||||
};
|
||||
}
|
@ -1,13 +1,11 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, python
|
||||
, isPyPy
|
||||
, six
|
||||
, filetype
|
||||
, deprecation
|
||||
, dataclasses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -25,8 +23,10 @@ buildPythonPackage rec {
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six filetype deprecation
|
||||
] ++ lib.optional (pythonOlder "3.7") dataclasses;
|
||||
deprecation
|
||||
filetype
|
||||
six
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
for prog in "$out/bin/"*; do
|
||||
|
@ -1,7 +1,6 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, callPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, babel
|
||||
, gruut-ipa
|
||||
@ -9,7 +8,6 @@
|
||||
, jsonlines
|
||||
, num2words
|
||||
, python-crfsuite
|
||||
, dataclasses
|
||||
, python
|
||||
, networkx
|
||||
, glibcLocales
|
||||
@ -61,8 +59,6 @@ buildPythonPackage rec {
|
||||
python-crfsuite
|
||||
dateparser
|
||||
networkx
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
] ++ (map (lang: callPackage ./language-pack.nix {
|
||||
inherit lang version format src;
|
||||
}) langPkgs);
|
||||
|
@ -5,7 +5,6 @@
|
||||
, anyio
|
||||
, asyncio-rlock
|
||||
, asyncio-throttle
|
||||
, dataclasses
|
||||
, ircstates
|
||||
, async_stagger
|
||||
, async-timeout
|
||||
@ -15,7 +14,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "ircrobots";
|
||||
version = "0.4.6";
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jesopo";
|
||||
@ -38,8 +37,6 @@ buildPythonPackage rec {
|
||||
ircstates
|
||||
async_stagger
|
||||
async-timeout
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
|
@ -2,7 +2,6 @@
|
||||
, backoff
|
||||
, backports-datetime-fromisoformat
|
||||
, buildPythonPackage
|
||||
, dataclasses
|
||||
, fetchFromGitHub
|
||||
, google-api-core
|
||||
, jinja2
|
||||
@ -20,7 +19,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "labelbox";
|
||||
version = "3.24.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Labelbox";
|
||||
@ -32,7 +31,6 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [
|
||||
backoff
|
||||
backports-datetime-fromisoformat
|
||||
dataclasses
|
||||
google-api-core
|
||||
jinja2
|
||||
ndjson
|
||||
|
@ -1,6 +1,5 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, dataclasses
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, google-cloud-storage
|
||||
@ -16,7 +15,7 @@ buildPythonPackage rec {
|
||||
version = "0.6.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@ -27,8 +26,6 @@ buildPythonPackage rec {
|
||||
smart-open
|
||||
typer
|
||||
google-cloud-storage
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
@ -5,7 +5,6 @@
|
||||
, docopt
|
||||
, pillow
|
||||
, requests
|
||||
, dataclasses
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
@ -13,7 +12,7 @@ buildPythonPackage rec {
|
||||
pname = "pixcat";
|
||||
version = "0.1.4";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
@ -5,7 +5,6 @@
|
||||
, cachy
|
||||
, cleo
|
||||
, crashtest
|
||||
, dataclasses
|
||||
, deepdiff
|
||||
, dulwich
|
||||
, fetchFromGitHub
|
||||
|
@ -1,6 +1,5 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, dataclasses
|
||||
, fetchPypi
|
||||
, jedi
|
||||
, pygments
|
||||
@ -16,7 +15,7 @@ buildPythonPackage rec {
|
||||
version = "2022.1.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@ -28,8 +27,6 @@ buildPythonPackage rec {
|
||||
pygments
|
||||
urwid
|
||||
urwid-readline
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
@ -1,13 +1,11 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, python
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, beautifulsoup4
|
||||
, lxml
|
||||
, jinja2
|
||||
, dataclasses
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
@ -39,8 +37,6 @@ buildPythonPackage rec {
|
||||
beautifulsoup4
|
||||
lxml
|
||||
jinja2
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
@ -3,7 +3,6 @@
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, CommonMark
|
||||
, dataclasses
|
||||
, poetry-core
|
||||
, pygments
|
||||
, typing-extensions
|
||||
@ -20,7 +19,7 @@ buildPythonPackage rec {
|
||||
pname = "rich";
|
||||
version = "12.6.0";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Textualize";
|
||||
@ -34,8 +33,6 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [
|
||||
CommonMark
|
||||
pygments
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
typing-extensions
|
||||
];
|
||||
|
@ -1,7 +1,6 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, dataclasses
|
||||
, fetchFromGitHub
|
||||
, libX11
|
||||
, libXinerama
|
||||
@ -16,7 +15,7 @@ buildPythonPackage rec {
|
||||
version = "0.8.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rr-";
|
||||
@ -29,10 +28,6 @@ buildPythonPackage rec {
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace screeninfo/enumerators/xinerama.py \
|
||||
--replace 'load_library("X11")' 'ctypes.cdll.LoadLibrary("${libX11}/lib/libX11.so")' \
|
||||
|
@ -4,7 +4,6 @@
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, typing-extensions
|
||||
, dataclasses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -23,8 +22,6 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [
|
||||
setuptools
|
||||
typing-extensions
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
@ -2,7 +2,6 @@
|
||||
, callPackage
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, dataclasses
|
||||
, torch
|
||||
, pythonOlder
|
||||
, spacy
|
||||
@ -16,7 +15,7 @@ buildPythonPackage rec {
|
||||
version = "1.1.8";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@ -29,8 +28,6 @@ buildPythonPackage rec {
|
||||
spacy-alignments
|
||||
srsly
|
||||
transformers
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
@ -11,7 +11,6 @@
|
||||
, CoreVideo
|
||||
, cymem
|
||||
, cython
|
||||
, dataclasses
|
||||
, fetchPypi
|
||||
, hypothesis
|
||||
, mock
|
||||
@ -67,7 +66,6 @@ buildPythonPackage rec {
|
||||
typing-extensions
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
contextvars
|
||||
dataclasses
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
@ -4,7 +4,6 @@
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, watchdog
|
||||
, dataclasses
|
||||
, ephemeral-port-reserve
|
||||
, pytest-timeout
|
||||
, pytest-xprocess
|
||||
@ -32,8 +31,6 @@ buildPythonPackage rec {
|
||||
] ++ lib.optionals (!stdenv.isDarwin) [
|
||||
# watchdog requires macos-sdk 10.13+
|
||||
watchdog
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
@ -31,8 +31,6 @@ python3.pkgs.buildPythonApplication rec {
|
||||
toml
|
||||
tqdm
|
||||
typing-extensions
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
backports.cached-property
|
||||
importlib_metadata
|
||||
|
@ -2173,8 +2173,6 @@ self: super: with self; {
|
||||
|
||||
databricks-sql-connector = callPackage ../development/python-modules/databricks-sql-connector { };
|
||||
|
||||
dataclasses = callPackage ../development/python-modules/dataclasses { };
|
||||
|
||||
dataclasses-json = callPackage ../development/python-modules/dataclasses-json { };
|
||||
|
||||
dataclasses-serialization = callPackage ../development/python-modules/dataclasses-serialization { };
|
||||
|
Loading…
Reference in New Issue
Block a user