From c618667bd3a41cc43032c6db48f539a1e6e97f8e Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 18 Sep 2018 13:32:01 -0400 Subject: [PATCH] pythonPackages.ovito: init at 3.0.0 --- .../python-modules/ovito/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 +++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/ovito/default.nix diff --git a/pkgs/development/python-modules/ovito/default.nix b/pkgs/development/python-modules/ovito/default.nix new file mode 100644 index 000000000000..cae337904b20 --- /dev/null +++ b/pkgs/development/python-modules/ovito/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchgit +, cmake +, qtbase, libav, netcdf, qscintilla, zlib, boost, git, fftw, hdf5, libssh +, pythonPackages +}: + +stdenv.mkDerivation rec { + # compilation error in 2.9.0 https://gitlab.com/stuko/ovito/issues/40 + # This is not the "released" 3.0.0 just a commit + version = "3.0.0"; + name = "ovito-${version}"; + + src = fetchgit { + url = "https://gitlab.com/stuko/ovito"; + rev = "a28c28182a879d2a1b511ec56f9845306dd8a4db"; + sha256 = "1vqzv3gzwf8r0g05a7fj8hdyvnzq2h3wdfck7j6n1av6rvp7hi5r"; + }; + + buildInputs = [ cmake libav netcdf qscintilla zlib boost zlib git fftw hdf5 libssh ]; + propagatedBuildInputs = with pythonPackages; [ sphinx numpy sip pyqt5 matplotlib ase ]; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "Scientific visualization and analysis software for atomistic simulation data"; + homepage = https://www.ovito.org; + license = licenses.gpl3; + maintainers = [ maintainers.costrouc ]; + # ensures not built on hydra + # https://github.com/NixOS/nixpkgs/pull/46846#issuecomment-436388048 + hydraPlatforms = [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1870d1b76fba..ff50b82bdff9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -454,6 +454,10 @@ in { outcome = callPackage ../development/python-modules/outcome {}; + ovito = toPythonModule (pkgs.libsForQt5.callPackage ../development/python-modules/ovito { + pythonPackages = self; + }); + palettable = callPackage ../development/python-modules/palettable { }; pathlib = callPackage ../development/python-modules/pathlib { };