depot/third_party/nixpkgs/pkgs/development/python-modules/gsd/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

35 lines
746 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy27
, cython, numpy
, pytestCheckHook
}:
buildPythonPackage rec {
version = "2.6.0";
pname = "gsd";
disabled = isPy27;
src = fetchFromGitHub {
owner = "glotzerlab";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-GVb05uy5HKIn+fARFBN+mK54y2CtFBM8At21VUFr7tc=";
};
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 ];
};
}