at 24.11-pre 949 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchFromGitHub, 6 numpy, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "gsd"; 13 version = "3.2.1"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "glotzerlab"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-huMM98An/DG8PIVblS3b6AxF6vJ5IoKOs1f9kBnR3ik="; 23 }; 24 25 nativeBuildInputs = [ cython ]; 26 27 propagatedBuildInputs = [ numpy ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "gsd" ]; 32 33 preCheck = '' 34 pushd gsd/test 35 ''; 36 37 postCheck = '' 38 popd 39 ''; 40 41 meta = with lib; { 42 description = "General simulation data file format"; 43 mainProgram = "gsd"; 44 homepage = "https://github.com/glotzerlab/gsd"; 45 changelog = "https://github.com/glotzerlab/gsd/blob/v${version}/CHANGELOG.rst"; 46 license = licenses.bsd2; 47 maintainers = with maintainers; [ ]; 48 }; 49}