Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 35 lines 737 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy27 2, cython, numpy 3, pytestCheckHook 4}: 5 6buildPythonPackage rec { 7 version = "2.4.1"; 8 pname = "gsd"; 9 disabled = isPy27; 10 11 src = fetchFromGitHub { 12 owner = "glotzerlab"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "02zxfmqw7a5kz8qjdph9a9961mbkd4haxwwa28yjkxs5hzs5x3c8"; 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}