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