Merge pull request #280298 from dotlambda/xsdata-24.1

python311Packages.xsdata: 23.8 -> 24.1

authored by Maximilian Bosch and committed by GitHub a5e8d84c 4c2565b8

+35 -14
+19 -10
pkgs/development/python-modules/xsdata/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , pythonOlder 4 - , fetchPypi 5 , click 6 , click-default-group 7 , docformatter ··· 12 , requests 13 , pytestCheckHook 14 , setuptools 15 - , wheel 16 }: 17 18 buildPythonPackage rec { 19 pname = "xsdata"; 20 - version = "23.8"; 21 - format = "pyproject"; 22 23 disabled = pythonOlder "3.8"; 24 25 - src = fetchPypi { 26 - inherit pname version; 27 - hash = "sha256-VfA9TIgjbwRyZq/+VQug3RlHat/OagHz4K76x8gHjlY="; 28 }; 29 30 postPatch = '' 31 substituteInPlace pyproject.toml \ 32 --replace "--benchmark-skip" "" ··· 34 35 nativeBuildInputs = [ 36 setuptools 37 - wheel 38 ]; 39 40 propagatedBuildInputs = [ ··· 83 ]; 84 85 meta = { 86 - description = "Python XML Binding"; 87 homepage = "https://github.com/tefra/xsdata"; 88 - changelog = "https://github.com/tefra/xsdata/blob/v${version}/CHANGES.rst"; 89 license = lib.licenses.mit; 90 maintainers = with lib.maintainers; [ dotlambda ]; 91 };
··· 1 { lib 2 , buildPythonPackage 3 , pythonOlder 4 + , fetchFromGitHub 5 + , substituteAll 6 + , ruff 7 , click 8 , click-default-group 9 , docformatter ··· 14 , requests 15 , pytestCheckHook 16 , setuptools 17 }: 18 19 buildPythonPackage rec { 20 pname = "xsdata"; 21 + version = "24.1"; 22 + pyproject = true; 23 24 disabled = pythonOlder "3.8"; 25 26 + src = fetchFromGitHub { 27 + owner = "tefra"; 28 + repo = "xsdata"; 29 + rev = "v${version}"; 30 + hash = "sha256-vdcCTJqvaRehGWfTd9GR/DypF9ftY4ite7SDMPc2Ups="; 31 }; 32 33 + patches = [ 34 + (substituteAll { 35 + src = ./paths.patch; 36 + ruff = lib.getExe ruff; 37 + }) 38 + ]; 39 + 40 postPatch = '' 41 substituteInPlace pyproject.toml \ 42 --replace "--benchmark-skip" "" ··· 44 45 nativeBuildInputs = [ 46 setuptools 47 ]; 48 49 propagatedBuildInputs = [ ··· 92 ]; 93 94 meta = { 95 + description = "Naive XML & JSON bindings for Python"; 96 homepage = "https://github.com/tefra/xsdata"; 97 + changelog = "https://github.com/tefra/xsdata/blob/${src.rev}/CHANGES.rst"; 98 license = lib.licenses.mit; 99 maintainers = with lib.maintainers; [ dotlambda ]; 100 };
+13
pkgs/development/python-modules/xsdata/paths.patch
···
··· 1 + diff --git a/xsdata/codegen/writer.py b/xsdata/codegen/writer.py 2 + index 0301631f..3185c526 100644 3 + --- a/xsdata/codegen/writer.py 4 + +++ b/xsdata/codegen/writer.py 5 + @@ -73,7 +73,7 @@ class CodeWriter: 6 + """Run ruff format on the src code.""" 7 + commands = [ 8 + [ 9 + - "ruff", 10 + + "@ruff@", 11 + "format", 12 + "--stdin-filename", 13 + str(file_path),
+3 -4
pkgs/servers/monitoring/prometheus/dmarc-metrics-exporter/default.nix
··· 5 6 python3.pkgs.buildPythonApplication rec { 7 pname = "dmarc-metrics-exporter"; 8 - version = "0.9.4"; 9 10 disabled = python3.pythonOlder "3.8"; 11 12 - format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "jgosmann"; 16 repo = "dmarc-metrics-exporter"; 17 rev = "refs/tags/v${version}"; 18 - hash = "sha256-doKG191rQvUpjOb3HvkzZP9XbtQXYGFtDJIdDSFRLSU="; 19 }; 20 21 pythonRelaxDeps = true; ··· 29 bite-parser 30 dataclasses-serialization 31 prometheus-client 32 - typing-extensions 33 uvicorn 34 xsdata 35 ]
··· 5 6 python3.pkgs.buildPythonApplication rec { 7 pname = "dmarc-metrics-exporter"; 8 + version = "0.10.1"; 9 10 disabled = python3.pythonOlder "3.8"; 11 12 + pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "jgosmann"; 16 repo = "dmarc-metrics-exporter"; 17 rev = "refs/tags/v${version}"; 18 + hash = "sha256-gur0+2yHqxySXECMboW7dAyyf0ckSdS0FEy7HvA5Y5w="; 19 }; 20 21 pythonRelaxDeps = true; ··· 29 bite-parser 30 dataclasses-serialization 31 prometheus-client 32 uvicorn 33 xsdata 34 ]