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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.3 KiB
Nix
Raw Normal View History

2022-09-09 23:57:42 +00:00
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pyparsing
, typing-extensions
, pytestCheckHook
}:
2017-04-24 21:14:24 +00:00
buildPythonPackage rec {
2022-09-09 23:57:42 +00:00
version = "0.18.1";
pname = "ezdxf";
2022-09-09 23:57:42 +00:00
format = "setuptools";
2017-04-24 21:14:24 +00:00
disabled = pythonOlder "3.5";
2017-04-25 21:22:53 +00:00
src = fetchFromGitHub {
owner = "mozman";
repo = "ezdxf";
2022-09-09 23:57:42 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-x1p9dWrbDtDreXdBuzOA4Za+ZC40y4xdEU7MGb9uUec=";
2017-04-24 21:14:24 +00:00
};
2022-09-09 23:57:42 +00:00
propagatedBuildInputs = [
pyparsing
typing-extensions
];
2017-04-25 21:22:53 +00:00
nativeCheckInputs = [
2022-09-09 23:57:42 +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"
2022-10-26 12:36:05 +00:00
# AssertionError: assert 44.99999999999999 == 45
"test_dimension_transform_interface"
2022-09-09 23:57:42 +00:00
];
pythonImportsCheck = [
"ezdxf"
"ezdxf.addons"
];
2017-04-24 21:14:24 +00:00
meta = with lib; {
2017-04-24 21:14:24 +00:00
description = "Python package to read and write DXF drawings (interface to the DXF file format)";
2020-02-26 21:34:10 +00:00
homepage = "https://github.com/mozman/ezdxf/";
2017-04-24 21:14:24 +00:00
license = licenses.mit;
2017-04-25 21:34:45 +00:00
maintainers = with maintainers; [ hodapp ];
2017-04-24 21:14:24 +00:00
platforms = platforms.unix;
};
}