From 5ba9411d02bcff1292fe8da27d3648a556b217e1 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sat, 21 Oct 2017 04:12:30 +0300 Subject: [PATCH] python.pkgs.numpy-stl: init at 2.3.2 --- .../python-modules/numpy-stl/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/numpy-stl/default.nix diff --git a/pkgs/development/python-modules/numpy-stl/default.nix b/pkgs/development/python-modules/numpy-stl/default.nix new file mode 100644 index 000000000000..835e39cc43e1 --- /dev/null +++ b/pkgs/development/python-modules/numpy-stl/default.nix @@ -0,0 +1,24 @@ +{ lib, buildPythonPackage, fetchPypi, cython, numpy, nine, pytest, pytestrunner, python-utils, enum34 }: + +buildPythonPackage rec { + pname = "numpy-stl"; + name = "${pname}-${version}"; + version = "2.3.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "0w3f9yhw4mg88drqnn17gaqxbx941p3hg0rn8fsqrf5ry56h93k2"; + }; + + 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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b0fd00118d17..7b4c6cad6479 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13348,6 +13348,8 @@ in { }; }; + numpy-stl = callPackage ../development/python-modules/numpy-stl { }; + numtraits = buildPythonPackage rec { pname = "numtraits"; version = "0.2";