Files
nixpkgs/pkgs/development/python-modules/ezdxf/default.nix
Michael Daniels 9171e96eaf maintainers: drop Hodapp87
Inactive since 2020.

(cherry picked from commit 452d2da265)
2026-03-01 13:54:19 -05:00

80 lines
1.2 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 = [ ];
platforms = lib.platforms.unix;
};
}