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

36 lines
737 B
Nix
Raw Normal View History

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