Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
946 B · 54 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, buildPythonPackage, cython, fetchFromGitHub, numpy, pytestCheckHook, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "gsd"; version = "4.0.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "glotzerlab"; repo = "gsd"; tag = "v${version}"; hash = "sha256-8pEs1use/R7g0l6h+rxjpN5j8PznqkJpjLxqiupn9iY="; };
build-system = [ cython numpy setuptools ];
dependencies = [ 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/${src.tag}/CHANGELOG.rst"; license = licenses.bsd2; maintainers = [ ]; };}