at 22.05-pre 737 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy27 2, cython, numpy 3, pytestCheckHook 4}: 5 6buildPythonPackage rec { 7 version = "2.5.0"; 8 pname = "gsd"; 9 disabled = isPy27; 10 11 src = fetchFromGitHub { 12 owner = "glotzerlab"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "0zw3ihbzkldwijz9phwivnzwylj30a2a4lknfbwm6vkx78rdrb1a"; 16 }; 17 18 nativeBuildInputs = [ cython ]; 19 propagatedBuildInputs = [ numpy ]; 20 21 checkInputs = [ pytestCheckHook ]; 22 preCheck = '' 23 pushd gsd/test 24 ''; 25 postCheck = '' 26 popd 27 ''; 28 29 meta = with lib; { 30 description = "General simulation data file format"; 31 homepage = "https://github.com/glotzerlab/gsd"; 32 license = licenses.bsd2; 33 maintainers = [ maintainers.costrouc ]; 34 }; 35}