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

28 lines
755 B
Nix
Raw Normal View History

2017-04-25 23:22:53 +02:00
{ stdenv, buildPythonPackage, fetchFromGitHub, pyparsing, pytest }:
2017-04-24 23:14:24 +02:00
buildPythonPackage rec {
version = "0.8.1";
pname = "ezdxf";
name = "${pname}-${version}";
2017-04-24 23:14:24 +02:00
2017-04-25 23:22:53 +02:00
src = fetchFromGitHub {
owner = "mozman";
repo = "ezdxf";
rev = "v${version}";
sha256 = "1c20j96n3rsgzaakfjl0wnydaj2qr69gbnnjs6mfa1hz2fjqri22";
2017-04-24 23:14:24 +02:00
};
2017-04-25 23:22:53 +02:00
buildInputs = [ pytest ];
checkPhase = "python -m unittest discover -s tests";
2017-04-24 23:14:24 +02:00
propagatedBuildInputs = [ pyparsing ];
meta = with stdenv.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;
2017-04-25 23:34:45 +02:00
maintainers = with maintainers; [ hodapp ];
2017-04-24 23:14:24 +02:00
platforms = platforms.unix;
};
}