mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
36 lines
737 B
Nix
36 lines
737 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
|
, cython, numpy
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "2.4.1";
|
|
pname = "gsd";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "glotzerlab";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "02zxfmqw7a5kz8qjdph9a9961mbkd4haxwwa28yjkxs5hzs5x3c8";
|
|
};
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
preCheck = ''
|
|
pushd gsd/test
|
|
'';
|
|
postCheck = ''
|
|
popd
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "General simulation data file format";
|
|
homepage = "https://github.com/glotzerlab/gsd";
|
|
license = licenses.bsd2;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|