mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
27 lines
723 B
Nix
27 lines
723 B
Nix
{ stdenv, buildPythonPackage, fetchFromGitHub, pyparsing, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.8.1";
|
|
pname = "ezdxf";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozman";
|
|
repo = "ezdxf";
|
|
rev = "v${version}";
|
|
sha256 = "1c20j96n3rsgzaakfjl0wnydaj2qr69gbnnjs6mfa1hz2fjqri22";
|
|
};
|
|
|
|
buildInputs = [ pytest ];
|
|
checkPhase = "python -m unittest discover -s tests";
|
|
|
|
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;
|
|
maintainers = with maintainers; [ hodapp ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|