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