nixpkgs/pkgs/development/python-modules/gsd/default.nix

36 lines
737 B
Nix
Raw Normal View History

2019-09-30 08:12:00 -07:00
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
2021-04-04 16:49:08 -07:00
, cython, numpy
, pytestCheckHook
2018-09-21 12:16:14 -07:00
}:
buildPythonPackage rec {
2021-04-04 16:49:08 -07:00
version = "2.4.1";
2018-09-21 12:16:14 -07:00
pname = "gsd";
2019-09-30 08:12:00 -07:00
disabled = isPy27;
2018-09-21 12:16:14 -07:00
2019-09-30 08:12:00 -07:00
src = fetchFromGitHub {
owner = "glotzerlab";
repo = pname;
rev = "v${version}";
2021-04-04 16:49:08 -07:00
sha256 = "02zxfmqw7a5kz8qjdph9a9961mbkd4haxwwa28yjkxs5hzs5x3c8";
2018-09-21 12:16:14 -07:00
};
2021-04-04 16:49:08 -07:00
nativeBuildInputs = [ cython ];
2018-09-21 12:16:14 -07:00
propagatedBuildInputs = [ numpy ];
2021-04-04 16:49:08 -07:00
checkInputs = [ pytestCheckHook ];
preCheck = ''
pushd gsd/test
'';
postCheck = ''
popd
2019-09-30 08:12:00 -07:00
'';
2018-09-21 12:16:14 -07:00
2019-09-30 08:12:00 -07:00
meta = with lib; {
2018-09-21 12:16:14 -07:00
description = "General simulation data file format";
2019-09-30 08:12:00 -07:00
homepage = "https://github.com/glotzerlab/gsd";
2018-09-21 12:16:14 -07:00
license = licenses.bsd2;
maintainers = [ maintainers.costrouc ];
};
}