depot/third_party/nixpkgs/pkgs/development/python-modules/gsd/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
639 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy27
, numpy
, pytest
}:
buildPythonPackage rec {
version = "1.9.3";
pname = "gsd";
disabled = isPy27;
src = fetchFromGitHub {
owner = "glotzerlab";
repo = pname;
rev = "v${version}";
sha256 = "07hw29r2inyp493dia4fx3ysfr1wxi2jb3n9cmwdi0l54s2ahqvf";
};
propagatedBuildInputs = [ numpy ];
checkInputs = [ pytest ];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "General simulation data file format";
homepage = "https://github.com/glotzerlab/gsd";
license = licenses.bsd2;
maintainers = [ maintainers.costrouc ];
};
}