Files
nixpkgs/pkgs/development/python-modules/gsd/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

50 lines
931 B
Nix

{
lib,
buildPythonPackage,
cython,
fetchFromGitHub,
numpy,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "gsd";
version = "3.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "glotzerlab";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-sDb6TJvN7yFiRabc66zIjk6w9CEUYMhpe+fWv+apvkI=";
};
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 = [ ];
};
}