nixpkgs/pkgs/development/python-modules/numpy-stl/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
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`.
2018-06-23 18:14:26 +02:00

24 lines
665 B
Nix

{ lib, buildPythonPackage, fetchPypi, cython, numpy, nine, pytest, pytestrunner, python-utils, enum34 }:
buildPythonPackage rec {
pname = "numpy-stl";
version = "2.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "33e88013ed2f4f9ec45598f0e0930a0d602ab3c49aa19e92703a867f37ffe520";
};
checkInputs = [ pytest pytestrunner ];
checkPhase = "py.test";
propagatedBuildInputs = [ cython numpy nine python-utils enum34 ];
meta = with lib; {
description = "Library to make reading, writing and modifying both binary and ascii STL files easy";
homepage = "https://github.com/WoLpH/numpy-stl/";
license = licenses.bsd3;
};
}