159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
55 lines
970 B
Nix
55 lines
970 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cython,
|
|
fetchFromGitHub,
|
|
numpy,
|
|
numpy_2,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gsd";
|
|
version = "3.3.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "glotzerlab";
|
|
repo = "gsd";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-4NxZPu4DrwQW6qHeYairefabfN7J0+48tvVwi6ti4vk=";
|
|
};
|
|
|
|
build-system = [
|
|
cython
|
|
numpy_2
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [ numpy ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "gsd" ];
|
|
|
|
preCheck = ''
|
|
pushd gsd/test
|
|
'';
|
|
|
|
postCheck = ''
|
|
popd
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "General simulation data file format";
|
|
mainProgram = "gsd";
|
|
homepage = "https://github.com/glotzerlab/gsd";
|
|
changelog = "https://github.com/glotzerlab/gsd/blob/v${version}/CHANGELOG.rst";
|
|
license = licenses.bsd2;
|
|
maintainers = [ ];
|
|
};
|
|
}
|