From a6a38c7118a30659ededd0fef4adae1d5403464c Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Fri, 25 May 2018 16:33:37 -0400 Subject: [PATCH] python2Packages.pyezminc: init at 1.2.01 --- .../python-modules/pyezminc/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/pyezminc/default.nix diff --git a/pkgs/development/python-modules/pyezminc/default.nix b/pkgs/development/python-modules/pyezminc/default.nix new file mode 100644 index 000000000000..614a1555cbef --- /dev/null +++ b/pkgs/development/python-modules/pyezminc/default.nix @@ -0,0 +1,33 @@ +{ buildPythonPackage, isPy3k, fetchFromGitHub, stdenv, + netcdf, hdf5, libminc, ezminc, + cython, numpy, scipy +}: + +buildPythonPackage rec { + pname = "pyezminc"; + version = "1.2.01"; + + disabled = isPy3k; + + src = fetchFromGitHub { + owner = "BIC-MNI"; + repo = "pyezminc"; + rev = "release-${version}"; + sha256 = "13smvramacisbwj8qsl160dnvv6ynngn1jmqwhvy146nmadphyv1"; + }; + + nativeBuildInputs = [ cython ]; + buildInputs = [ netcdf hdf5 libminc ezminc ]; + propagatedBuildInputs = [ numpy scipy ]; + + NIX_CFLAGS_COMPILE = "-fpermissive"; + + doCheck = false; # e.g., expects test data in /opt + + meta = { + homepage = https://github.com/BIC-MNI/pyezminc; + description = "Python API for libminc using EZMINC"; + license = stdenv.lib.licenses.gpl2; + maintainers = with stdenv.lib.maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b695372fe96a..fa1f9c15480c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1240,6 +1240,8 @@ in { pyechonest = callPackage ../development/python-modules/pyechonest { }; + pyezminc = callPackage ../development/python-modules/pyezminc { }; + billiard = callPackage ../development/python-modules/billiard { }; binaryornot = callPackage ../development/python-modules/binaryornot { };