1{ lib, buildPythonPackage, fetchFromGitHub, isPy27
2, numpy
3, pytest
4}:
5
6buildPythonPackage rec {
7 version = "1.9.3";
8 pname = "gsd";
9 disabled = isPy27;
10
11 src = fetchFromGitHub {
12 owner = "glotzerlab";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "07hw29r2inyp493dia4fx3ysfr1wxi2jb3n9cmwdi0l54s2ahqvf";
16 };
17
18 propagatedBuildInputs = [ numpy ];
19
20 checkInputs = [ pytest ];
21 checkPhase = ''
22 pytest
23 '';
24
25 meta = with lib; {
26 description = "General simulation data file format";
27 homepage = "https://github.com/glotzerlab/gsd";
28 license = licenses.bsd2;
29 maintainers = [ maintainers.costrouc ];
30 };
31}