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

36 lines
737 B
Nix
Raw Normal View History

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