1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 06:42:33 +03:00
nixpkgs/pkgs/development/python-modules/ezdxf/default.nix

58 lines
1.3 KiB
Nix
Raw Normal View History

2022-09-10 01:57:42 +02:00
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pyparsing
, typing-extensions
, pytestCheckHook
}:
2017-04-24 17:14:24 -04:00
buildPythonPackage rec {
2022-09-10 01:57:42 +02:00
version = "0.18.1";
pname = "ezdxf";
2022-09-10 01:57:42 +02:00
format = "setuptools";
2017-04-24 17:14:24 -04:00
disabled = pythonOlder "3.5";
2017-04-25 23:22:53 +02:00
src = fetchFromGitHub {
owner = "mozman";
repo = "ezdxf";
2022-09-10 01:57:42 +02:00
rev = "refs/tags/v${version}";
sha256 = "sha256-x1p9dWrbDtDreXdBuzOA4Za+ZC40y4xdEU7MGb9uUec=";
2017-04-24 17:14:24 -04:00
};
2022-09-10 01:57:42 +02:00
propagatedBuildInputs = [
pyparsing
typing-extensions
];
2017-04-25 23:22:53 +02:00
2022-09-10 01:57:42 +02:00
checkInputs = [
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 14:36:05 +02:00
# AssertionError: assert 44.99999999999999 == 45
"test_dimension_transform_interface"
2022-09-10 01:57:42 +02:00
];
pythonImportsCheck = [
"ezdxf"
"ezdxf.addons"
];
2017-04-24 17:14:24 -04:00
meta = with lib; {
2017-04-24 17:14:24 -04: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 17:14:24 -04:00
license = licenses.mit;
2017-04-25 17:34:45 -04:00
maintainers = with maintainers; [ hodapp ];
2017-04-24 17:14:24 -04:00
platforms = platforms.unix;
};
}