35 lines
746 B
Nix
35 lines
746 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
|
, cython, numpy
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "2.5.3";
|
|
pname = "gsd";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "glotzerlab";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-3CJKpvgJuFC/2qQdy0H/kvLbtmfF22gBAQustK99uEE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
preCheck = ''
|
|
pushd gsd/test
|
|
'';
|
|
postCheck = ''
|
|
popd
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "General simulation data file format";
|
|
homepage = "https://github.com/glotzerlab/gsd";
|
|
license = licenses.bsd2;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|