nixpkgs/pkgs/development/python-modules/arrow/default.nix
2017-07-21 14:10:05 +01:00

28 lines
621 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, nose, chai, simplejson
, dateutil }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "arrow";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "08n7q2l69hlainds1byd4lxhwrq7zsw7s640zkqc3bs5jkq0cnc0";
};
checkPhase = ''
nosetests --cover-package=arrow
'';
buildInputs = [ nose chai simplejson ];
propagatedBuildInputs = [ dateutil ];
meta = with stdenv.lib; {
description = "Python library for date manipulation";
license = "apache";
maintainers = with maintainers; [ thoughtpolice ];
};
}