depot/third_party/nixpkgs/pkgs/development/python-modules/ezdxf/default.nix

80 lines
1.3 KiB
Nix
Raw Normal View History

{
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";
rev = "refs/tags/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 = with lib; {
description = "Python package to read and write DXF drawings (interface to the DXF file format)";
mainProgram = "ezdxf";
homepage = "https://github.com/mozman/ezdxf/";
license = licenses.mit;
maintainers = with maintainers; [ hodapp ];
platforms = platforms.unix;
};
}