depot/third_party/nixpkgs/pkgs/development/python-modules/gsd/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

56 lines
949 B
Nix

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