depot/third_party/nixpkgs/pkgs/development/python-modules/gsd/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

49 lines
949 B
Nix

{
lib,
buildPythonPackage,
cython,
fetchFromGitHub,
numpy,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "gsd";
version = "3.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "glotzerlab";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-huMM98An/DG8PIVblS3b6AxF6vJ5IoKOs1f9kBnR3ik=";
};
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "gsd" ];
preCheck = ''
pushd gsd/test
'';
postCheck = ''
popd
'';
meta = with lib; {
description = "General simulation data file format";
mainProgram = "gsd";
homepage = "https://github.com/glotzerlab/gsd";
changelog = "https://github.com/glotzerlab/gsd/blob/v${version}/CHANGELOG.rst";
license = licenses.bsd2;
maintainers = with maintainers; [ ];
};
}