2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pyparsing,
|
|
|
|
typing-extensions,
|
|
|
|
pytestCheckHook,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
|
|
|
cython,
|
|
|
|
numpy,
|
|
|
|
fonttools,
|
|
|
|
pillow,
|
|
|
|
pyside6,
|
|
|
|
matplotlib,
|
|
|
|
pymupdf,
|
|
|
|
pyqt5,
|
2022-10-30 15:09:59 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.3.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ezdxf";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozman";
|
|
|
|
repo = "ezdxf";
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-BzdLl2GjLh2ABJzJ6bhdbic9jlSABIVR3XGrYiLJHa0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2022-10-30 15:09:59 +00:00
|
|
|
pyparsing
|
|
|
|
typing-extensions
|
2024-09-19 14:19:46 +00:00
|
|
|
numpy
|
|
|
|
fonttools
|
2022-10-30 15:09:59 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
optional-dependencies = {
|
|
|
|
draw = [
|
|
|
|
pyside6
|
|
|
|
matplotlib
|
|
|
|
pymupdf
|
|
|
|
pillow
|
|
|
|
];
|
|
|
|
draw5 = [
|
|
|
|
pyqt5
|
|
|
|
matplotlib
|
|
|
|
pymupdf
|
|
|
|
pillow
|
|
|
|
];
|
|
|
|
};
|
2022-10-30 15:09:59 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
cython
|
2022-10-30 15:09:59 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
checkInputs = [ pillow ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ezdxf"
|
|
|
|
"ezdxf.addons"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python package to read and write DXF drawings (interface to the DXF file format)";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ezdxf";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/mozman/ezdxf/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hodapp ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|