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