python313Packages.characteristic: drop (#479867)
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
diff --git a/nox/update.py b/nox/update.py
|
||||
index ea4425f..3101ab9 100644
|
||||
--- a/nox/update.py
|
||||
+++ b/nox/update.py
|
||||
@@ -1,3 +1,4 @@
|
||||
+import attrs
|
||||
import click
|
||||
import re
|
||||
import subprocess
|
||||
@@ -6,15 +7,17 @@ from enum import Enum
|
||||
from bisect import bisect
|
||||
from pkg_resources import parse_version
|
||||
from pathlib import Path
|
||||
-from characteristic import attributes
|
||||
from collections import defaultdict
|
||||
|
||||
def query(*args):
|
||||
return subprocess.check_output(['nix-store', '--query'] + list(args),
|
||||
universal_newlines=True)
|
||||
|
||||
-@attributes(['full_name', 'path'], apply_with_init=False)
|
||||
+@attrs.define(init=False)
|
||||
class NixPath:
|
||||
+ full_name: str = attrs.field(default=None)
|
||||
+ path: str = attrs.field(default=None)
|
||||
+
|
||||
def __init__(self, path):
|
||||
self.path = path
|
||||
self.is_drv = self.path.endswith('.drv')
|
||||
diff --git a/requirements.txt b/requirements.txt
|
||||
index a7bfc0e..4298b69 100644
|
||||
--- a/requirements.txt
|
||||
+++ b/requirements.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
+attrs
|
||||
click
|
||||
dogpile.cache
|
||||
-characteristic
|
||||
-requests
|
||||
\ No newline at end of file
|
||||
+requests
|
||||
@@ -14,7 +14,11 @@ python3Packages.buildPythonApplication rec {
|
||||
sha256 = "1qcbhdnhdhhv7q6cqdgv0q55ic8fk18526zn2yb12x9r1s0lfp9z";
|
||||
};
|
||||
|
||||
patches = [ ./nox-review-wip.patch ];
|
||||
patches = [
|
||||
./nox-review-wip.patch
|
||||
# https://github.com/madjar/nox/pull/100
|
||||
./move-to-attrs.patch
|
||||
];
|
||||
|
||||
build-system = with python3Packages; [
|
||||
setuptools
|
||||
@@ -25,7 +29,7 @@ python3Packages.buildPythonApplication rec {
|
||||
dogpile-cache
|
||||
click
|
||||
requests
|
||||
characteristic
|
||||
attrs
|
||||
setuptools # pkg_resources is imported during runtime
|
||||
];
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
{
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pytest,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "characteristic";
|
||||
version = "14.3.0";
|
||||
format = "setuptools";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ded68d4e424115ed44e5c83c2a901a0b6157a959079d7591d92106ffd3ada380";
|
||||
};
|
||||
|
||||
nativeCheckInputs = [ pytest ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Python attributes without boilerplate";
|
||||
homepage = "https://characteristic.readthedocs.org";
|
||||
};
|
||||
}
|
||||
@@ -3,7 +3,6 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
python,
|
||||
characteristic,
|
||||
six,
|
||||
twisted,
|
||||
}:
|
||||
@@ -21,7 +20,6 @@ buildPythonPackage {
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
characteristic
|
||||
six
|
||||
twisted
|
||||
];
|
||||
|
||||
@@ -98,6 +98,7 @@ mapAliases {
|
||||
can = throw "'can' has been renamed to/replaced by 'python-can'"; # Converted to throw 2025-10-29
|
||||
casbin = pycasbin; # added 2025-06-12
|
||||
cchardet = throw "'cchardet' has been renamed to/replaced by 'faust-cchardet'"; # Converted to throw 2025-10-29
|
||||
characteristic = throw "'characteristic' has been removed because it is no longer maintained upstream"; # Added 2026-01-14
|
||||
cirq-rigetti = throw "cirq-rigetti was removed because it is no longer provided by upstream"; # added 2025-09-13
|
||||
class-registry = throw "'class-registry' has been renamed to/replaced by 'phx-class-registry'"; # Converted to throw 2025-10-29
|
||||
ColanderAlchemy = throw "'ColanderAlchemy' has been renamed to/replaced by 'colanderalchemy'"; # Converted to throw 2025-10-29
|
||||
|
||||
@@ -2625,8 +2625,6 @@ self: super: with self; {
|
||||
|
||||
character-encoding-utils = callPackage ../development/python-modules/character-encoding-utils { };
|
||||
|
||||
characteristic = callPackage ../development/python-modules/characteristic { };
|
||||
|
||||
chardet = callPackage ../development/python-modules/chardet { };
|
||||
|
||||
charset-normalizer = callPackage ../development/python-modules/charset-normalizer { };
|
||||
|
||||
Reference in New Issue
Block a user