nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, fetchFromGitHub, isPy27
2, cython, numpy
3, pytestCheckHook
4}:
5
6buildPythonPackage rec {
7 version = "2.5.1";
8 pname = "gsd";
9 disabled = isPy27;
10
11 src = fetchFromGitHub {
12 owner = "glotzerlab";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "00cy4lw7xnl2skfx7fg7cs1c8lrbaxvkym9j6zfi1dbvsdd0r103";
16 };
17
18 nativeBuildInputs = [ cython ];
19 propagatedBuildInputs = [ numpy ];
20
21 checkInputs = [ pytestCheckHook ];
22 preCheck = ''
23 pushd gsd/test
24 '';
25 postCheck = ''
26 popd
27 '';
28
29 meta = with lib; {
30 description = "General simulation data file format";
31 homepage = "https://github.com/glotzerlab/gsd";
32 license = licenses.bsd2;
33 maintainers = [ maintainers.costrouc ];
34 };
35}