nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 cython,
5 fetchFromGitHub,
6 numpy,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "gsd";
13 version = "4.2.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "glotzerlab";
18 repo = "gsd";
19 tag = "v${version}";
20 hash = "sha256-qswKeZ8HJEjIV27O2UBmjN+Napa2sItECS5r/vb+l7k=";
21 };
22
23 build-system = [
24 cython
25 numpy
26 setuptools
27 ];
28
29 dependencies = [ numpy ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "gsd" ];
34
35 preCheck = ''
36 pushd gsd/test
37 '';
38
39 postCheck = ''
40 popd
41 '';
42
43 meta = {
44 description = "General simulation data file format";
45 mainProgram = "gsd";
46 homepage = "https://github.com/glotzerlab/gsd";
47 changelog = "https://github.com/glotzerlab/gsd/blob/${src.tag}/CHANGELOG.rst";
48 license = lib.licenses.bsd2;
49 maintainers = [ ];
50 };
51}