Files
nixpkgs/pkgs/development/python-modules/ezdxf/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

80 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
pyparsing,
typing-extensions,
pytestCheckHook,
setuptools,
cython,
numpy,
fonttools,
pillow,
pyside6,
matplotlib,
pymupdf,
pyqt5,
}:
buildPythonPackage rec {
version = "1.3.2";
pname = "ezdxf";
pyproject = true;
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "mozman";
repo = "ezdxf";
tag = "v${version}";
hash = "sha256-BzdLl2GjLh2ABJzJ6bhdbic9jlSABIVR3XGrYiLJHa0=";
};
dependencies = [
pyparsing
typing-extensions
numpy
fonttools
];
optional-dependencies = {
draw = [
pyside6
matplotlib
pymupdf
pillow
];
draw5 = [
pyqt5
matplotlib
pymupdf
pillow
];
};
build-system = [
setuptools
cython
];
checkInputs = [ pillow ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"ezdxf"
"ezdxf.addons"
];
meta = {
description = "Python package to read and write DXF drawings (interface to the DXF file format)";
mainProgram = "ezdxf";
homepage = "https://github.com/mozman/ezdxf/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hodapp ];
platforms = lib.platforms.unix;
};
}