python312Packages.dataclasses-serialization: migrate to pythonRelaxDepsHook
This commit is contained in:
@@ -32,14 +32,13 @@ buildPythonPackage rec {
|
||||
substituteInPlace setup.py \
|
||||
--replace "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]"
|
||||
|
||||
# dataclasses is included in Python 3.7
|
||||
substituteInPlace requirements.txt \
|
||||
--replace dataclasses ""
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user