pythonPackages.arrow: move to python-modules
This commit is contained in:
parent
98fe450553
commit
ce67c7c1ac
27
pkgs/development/python-modules/arrow/default.nix
Normal file
27
pkgs/development/python-modules/arrow/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
|
@ -763,28 +763,7 @@ in {
|
|||
};
|
||||
|
||||
|
||||
arrow = buildPythonPackage rec {
|
||||
name = "arrow-${version}";
|
||||
version = "0.10.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/a/arrow/${name}.tar.gz";
|
||||
sha256 = "08n7q2l69hlainds1byd4lxhwrq7zsw7s640zkqc3bs5jkq0cnc0";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
nosetests --cover-package=arrow
|
||||
'';
|
||||
|
||||
buildInputs = with self; [ nose chai simplejson ];
|
||||
propagatedBuildInputs = with self; [ dateutil ];
|
||||
|
||||
meta = {
|
||||
description = "Python library for date manipulation";
|
||||
license = "apache";
|
||||
maintainers = with maintainers; [ thoughtpolice ];
|
||||
};
|
||||
};
|
||||
arrow = callPackage ../development/python-modules/arrow { };
|
||||
|
||||
async = buildPythonPackage rec {
|
||||
name = "async-0.6.1";
|
||||
|
|
Loading…
Reference in a new issue