From 184c31323c32110c9f82962dd73c6d2ba5a2dfc7 Mon Sep 17 00:00:00 2001 From: "nagato.pain" Date: Mon, 11 Jun 2018 13:34:09 -0700 Subject: [PATCH] pythonPackages.spglib: init at 1.10.3.65 --- .../python-modules/spglib/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/spglib/default.nix diff --git a/pkgs/development/python-modules/spglib/default.nix b/pkgs/development/python-modules/spglib/default.nix new file mode 100644 index 000000000000..07273d0fa0d4 --- /dev/null +++ b/pkgs/development/python-modules/spglib/default.nix @@ -0,0 +1,27 @@ +{ stdenv, buildPythonPackage, fetchPypi, numpy, python }: + +buildPythonPackage rec { + pname = "spglib"; + version = "1.10.3.65"; + + src = fetchPypi { + inherit pname version; + sha256 = "55b49227835396b2bcd6afe724e9f37202ad0f61e273bedebd5bf740bad2e8e3"; + }; + + propagatedBuildInputs = [ numpy ]; + + checkPhase = '' + cd test + ${python.interpreter} -m unittest discover -bv + ''; + + meta = with stdenv.lib; { + description = "Python bindings for C library for finding and handling crystal symmetries"; + homepage = https://atztogo.github.io/spglib; + license = licenses.bsd3; + maintainers = with maintainers; [ psyanticy ]; + }; + +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5aea6571d2be..0133161c4167 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -456,6 +456,8 @@ in { sip = callPackage ../development/python-modules/sip { }; + spglib = callPackage ../development/python-modules/spglib { }; + supervise_api = callPackage ../development/python-modules/supervise_api { }; syncserver = callPackage ../development/python-modules/syncserver {};