nixpkgs/pkgs/development/python-modules/gsd/default.nix

32 lines
639 B
Nix
Raw Normal View History

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