2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyparsing
|
|
|
|
, typing-extensions
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "0.18.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ezdxf";
|
2022-10-30 15:09:59 +00:00
|
|
|
format = "setuptools";
|
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}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-x1p9dWrbDtDreXdBuzOA4Za+ZC40y4xdEU7MGb9uUec=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyparsing
|
|
|
|
typing-extensions
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-30 15:09:59 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires geomdl dependency
|
|
|
|
"TestNurbsPythonCorrectness"
|
|
|
|
"test_rational_spline_curve_points_by_nurbs_python"
|
|
|
|
"test_rational_spline_derivatives_by_nurbs_python"
|
|
|
|
"test_from_nurbs_python_curve_to_ezdxf_bspline"
|
|
|
|
"test_from_ezdxf_bspline_to_nurbs_python_curve_non_rational"
|
|
|
|
"test_from_ezdxf_bspline_to_nurbs_python_curve_rational"
|
|
|
|
# AssertionError: assert 44.99999999999999 == 45
|
|
|
|
"test_dimension_transform_interface"
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|