From 3941d8213ea72e6f4acd2d92e4135e4a345a43c1 Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 5 Jul 2024 13:41:21 +0900 Subject: [PATCH 1/2] python311Packages.iodata: 1.0.0a2 -> 1.0.0a4 Diff: https://github.com/theochem/iodata/compare/refs/tags/v1.0.0a2...v1.0.0a4 --- .../python-modules/iodata/default.nix | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/iodata/default.nix b/pkgs/development/python-modules/iodata/default.nix index af27d8494d06..6d54abb26e09 100644 --- a/pkgs/development/python-modules/iodata/default.nix +++ b/pkgs/development/python-modules/iodata/default.nix @@ -2,30 +2,31 @@ buildPythonPackage, lib, fetchFromGitHub, + setuptools, + setuptools-scm, numpy, scipy, attrs, - cython, - nose, }: buildPythonPackage rec { pname = "iodata"; - version = "1.0.0a2"; - format = "setuptools"; + version = "1.0.0a4"; + pyproject = true; src = fetchFromGitHub { owner = "theochem"; repo = pname; - rev = version; - hash = "sha256-GFTCYE19Re7WLhV8eU+0i8OMp/Tsms/Xj9DRTcgjcz4="; + rev = "refs/tags/v${version}"; + hash = "sha256-ld6V+/8lg4Du6+mHU5XuXXyMpWwyepXurerScg/bf2Q="; }; - nativeBuildInputs = [ - cython - nose + build-system = [ + setuptools + setuptools-scm ]; - propagatedBuildInputs = [ + + dependencies = [ numpy scipy attrs From 2729ee5d23e8dafb6915dea4b5b05b4da02a4047 Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 5 Jul 2024 13:47:51 +0900 Subject: [PATCH 2/2] python311Packages.iodata: enable check phase --- pkgs/development/python-modules/iodata/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/iodata/default.nix b/pkgs/development/python-modules/iodata/default.nix index 6d54abb26e09..e412d4fcbd89 100644 --- a/pkgs/development/python-modules/iodata/default.nix +++ b/pkgs/development/python-modules/iodata/default.nix @@ -7,6 +7,8 @@ numpy, scipy, attrs, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,7 +35,11 @@ buildPythonPackage rec { ]; pythonImportsCheck = [ "iodata" ]; - doCheck = false; # Requires roberto or nose and a lenghtly setup to find the cython modules + + nativeCheckInputs = [ + pytest-xdist + pytestCheckHook + ]; meta = with lib; { description = "Python library for reading, writing, and converting computational chemistry file formats and generating input files";