mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 23:51:03 +00:00
python3Packages.dataclasses-serialization: drop
Unmaintained upstream and broken for Python 3.13 and higher.
This commit is contained in:
@@ -1,64 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
more-properties,
|
||||
typing-inspect,
|
||||
toolz,
|
||||
toposort,
|
||||
bson,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dataclasses-serialization";
|
||||
version = "1.3.1";
|
||||
|
||||
# upstream requires >= 3.6 but only 3.7 includes dataclasses
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "madman-bob";
|
||||
repo = "python-dataclasses-serialization";
|
||||
rev = version;
|
||||
hash = "sha256-jLMR2D01KgzHHRP0zduMBJt8xgBmIquWLCjZYLo2/AA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
mv pypi_upload/setup.py .
|
||||
substituteInPlace setup.py \
|
||||
--replace "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]"
|
||||
|
||||
# https://github.com/madman-bob/python-dataclasses-serialization/issues/16
|
||||
sed -i '/(\(Dict\|List\)/d' tests/test_json.py tests/test_bson.py
|
||||
'';
|
||||
|
||||
# dataclasses is included in Python 3.7
|
||||
pythonRemoveDeps = [ "dataclasses" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
more-properties
|
||||
typing-inspect
|
||||
toolz
|
||||
toposort
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
bson
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"dataclasses_serialization.bson"
|
||||
"dataclasses_serialization.json"
|
||||
"dataclasses_serialization.serializer_base"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Serialize/deserialize Python dataclasses to various other data formats";
|
||||
homepage = "https://github.com/madman-bob/python-dataclasses-serialization";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
@@ -161,6 +161,7 @@ mapAliases {
|
||||
cx_oracle = throw "'cx_oracle' has been renamed to/replaced by 'cx-oracle'"; # Converted to throw 2025-10-29
|
||||
dalle-mini = throw "'dalle-mini' has been removed due to lack of upstream maintenance"; # added 2026-02-26
|
||||
dask-yarn = throw "'dask-yarn' has been removed due to lack of upstream maintenance"; # added 2026-07-06
|
||||
dataclasses-serialization = throw "'dataclasses-serialization' has been removed due to lack of upstream maintenance."; # added 2026-07-14
|
||||
datashape = throw "'datashape' has been removed as it was unmaintained upstream"; # Added 2026-03-22
|
||||
datatable = throw "'datatable' has been removed due to lack of upstream maintenance"; # added 2026-02-02
|
||||
dateutil = throw "'dateutil' has been renamed to/replaced by 'python-dateutil'"; # Converted to throw 2025-10-29
|
||||
|
||||
@@ -3989,8 +3989,6 @@ self: super: with self; {
|
||||
|
||||
dataclasses-json = callPackage ../development/python-modules/dataclasses-json { };
|
||||
|
||||
dataclasses-serialization = callPackage ../development/python-modules/dataclasses-serialization { };
|
||||
|
||||
dataconf = callPackage ../development/python-modules/dataconf { };
|
||||
|
||||
datadiff = callPackage ../development/python-modules/datadiff { };
|
||||
|
||||
Reference in New Issue
Block a user