From 908fd5ac2e804d48aab32580e7e0c140d3877914 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 6 May 2022 02:47:18 +0000 Subject: [PATCH 1/3] python310Packages.spglib: 1.16.3 -> 1.16.5 --- pkgs/development/python-modules/spglib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/spglib/default.nix b/pkgs/development/python-modules/spglib/default.nix index a54fa65d08b7..067b26cd2329 100644 --- a/pkgs/development/python-modules/spglib/default.nix +++ b/pkgs/development/python-modules/spglib/default.nix @@ -2,11 +2,11 @@ buildPythonPackage rec { pname = "spglib"; - version = "1.16.3"; + version = "1.16.5"; src = fetchPypi { inherit pname version; - sha256 = "ff1420967d64c2d4f0d747886116a6836d9b473454cdd73d560dbfe973a8a038"; + sha256 = "sha256-Lqzv1TzGRLqakMRoH9bJNLa92BjBE9fzGZBOB41dq5M="; }; propagatedBuildInputs = [ numpy ]; From 0446cf377a30698371357f012befee240d17cbdb Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 6 May 2022 04:20:00 +0000 Subject: [PATCH 2/3] python39Packages.spglib: execute tests --- pkgs/development/python-modules/spglib/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/spglib/default.nix b/pkgs/development/python-modules/spglib/default.nix index 067b26cd2329..3f9a2aeb71d2 100644 --- a/pkgs/development/python-modules/spglib/default.nix +++ b/pkgs/development/python-modules/spglib/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, numpy, nose, pyyaml }: +{ lib, buildPythonPackage, fetchPypi, numpy, pytest, pyyaml }: buildPythonPackage rec { pname = "spglib"; @@ -11,7 +11,15 @@ buildPythonPackage rec { propagatedBuildInputs = [ numpy ]; - checkInputs = [ nose pyyaml ]; + checkInputs = [ pytest pyyaml ]; + + # pytestCheckHook doesn't work + # ImportError: cannot import name '_spglib' from partially initialized module 'spglib' + checkPhase = '' + pytest + ''; + + pythonImportsCheck = [ "spglib" ]; meta = with lib; { description = "Python bindings for C library for finding and handling crystal symmetries"; From 3701ffd5aba87dd6225a26a5a15bcfadb1dce97f Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 6 May 2022 04:20:00 +0000 Subject: [PATCH 3/3] python39Packages.spglib: update meta --- pkgs/development/python-modules/spglib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/spglib/default.nix b/pkgs/development/python-modules/spglib/default.nix index 3f9a2aeb71d2..d317f11dea42 100644 --- a/pkgs/development/python-modules/spglib/default.nix +++ b/pkgs/development/python-modules/spglib/default.nix @@ -23,9 +23,9 @@ buildPythonPackage rec { meta = with lib; { description = "Python bindings for C library for finding and handling crystal symmetries"; - homepage = "https://atztogo.github.io/spglib"; + homepage = "https://spglib.github.io/spglib/"; + changelog = "https://github.com/spglib/spglib/raw/v${version}/ChangeLog"; license = licenses.bsd3; maintainers = with maintainers; [ psyanticy ]; }; } -