1{ stdenv, buildPythonPackage, fetchFromGitHub, pyparsing, pytest }: 2 3buildPythonPackage rec { 4 version = "0.8.1"; 5 pname = "ezdxf"; 6 7 src = fetchFromGitHub { 8 owner = "mozman"; 9 repo = "ezdxf"; 10 rev = "v${version}"; 11 sha256 = "1c20j96n3rsgzaakfjl0wnydaj2qr69gbnnjs6mfa1hz2fjqri22"; 12 }; 13 14 buildInputs = [ pytest ]; 15 checkPhase = "python -m unittest discover -s tests"; 16 17 propagatedBuildInputs = [ pyparsing ]; 18 19 meta = with stdenv.lib; { 20 description = "Python package to read and write DXF drawings (interface to the DXF file format)"; 21 homepage = https://github.com/mozman/ezdxf/; 22 license = licenses.mit; 23 maintainers = with maintainers; [ hodapp ]; 24 platforms = platforms.unix; 25 }; 26}