diff --git a/pkgs/development/python-modules/gsd/default.nix b/pkgs/development/python-modules/gsd/default.nix index c8647794e2c0..ab64a78c103f 100644 --- a/pkgs/development/python-modules/gsd/default.nix +++ b/pkgs/development/python-modules/gsd/default.nix @@ -1,27 +1,47 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy27 -, cython, numpy +{ lib +, buildPythonPackage +, cython +, fetchFromGitHub +, numpy , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { - version = "2.6.0"; pname = "gsd"; - disabled = isPy27; + version = "2.6.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "glotzerlab"; repo = pname; rev = "refs/tags/v${version}"; - sha256 = "sha256-GVb05uy5HKIn+fARFBN+mK54y2CtFBM8At21VUFr7tc="; + hash = "sha256-vQutfkSilfgRHuu/THWMG6bmkT1eKlAAniQM4DP8mqI="; }; - nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ numpy ]; + nativeBuildInputs = [ + cython + ]; + + propagatedBuildInputs = [ + numpy + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "gsd" + ]; + - checkInputs = [ pytestCheckHook ]; preCheck = '' pushd gsd/test ''; + postCheck = '' popd ''; @@ -30,6 +50,6 @@ buildPythonPackage rec { description = "General simulation data file format"; homepage = "https://github.com/glotzerlab/gsd"; license = licenses.bsd2; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; }