about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ezdxf/default.nix
blob: e0c7b76d1e61e25c5ed9cb656c39229a9d6769a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pyparsing
, typing-extensions
, pytestCheckHook
}:

buildPythonPackage rec {
  version = "0.18.1";
  pname = "ezdxf";
  format = "setuptools";

  disabled = pythonOlder "3.5";

  src = fetchFromGitHub {
    owner = "mozman";
    repo = "ezdxf";
    rev = "refs/tags/v${version}";
    hash = "sha256-x1p9dWrbDtDreXdBuzOA4Za+ZC40y4xdEU7MGb9uUec=";
  };

  propagatedBuildInputs = [
    pyparsing
    typing-extensions
  ];

  nativeCheckInputs = [
    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"
  ];

  meta = with lib; {
    description = "Python package to read and write DXF drawings (interface to the DXF file format)";
    homepage = "https://github.com/mozman/ezdxf/";
    license = licenses.mit;
    maintainers = with maintainers; [ hodapp ];
    platforms = platforms.unix;
  };
}