diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-07-21 14:14:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 14:14:44 +0100 |
commit | d0bcb41d2d5659c8e8cefa8477c8c7c060aa88c7 (patch) | |
tree | b077b5ad92a8f591078336f363d934c36d7739a0 /pkgs | |
parent | 3954cbb4a5243d5124660b9f29ea01f7f7bf4991 (diff) | |
parent | ce67c7c1aca192540ecccafe9c2d83cacec16817 (diff) | |
download | nixlib-d0bcb41d2d5659c8e8cefa8477c8c7c060aa88c7.tar nixlib-d0bcb41d2d5659c8e8cefa8477c8c7c060aa88c7.tar.gz nixlib-d0bcb41d2d5659c8e8cefa8477c8c7c060aa88c7.tar.bz2 nixlib-d0bcb41d2d5659c8e8cefa8477c8c7c060aa88c7.tar.lz nixlib-d0bcb41d2d5659c8e8cefa8477c8c7c060aa88c7.tar.xz nixlib-d0bcb41d2d5659c8e8cefa8477c8c7c060aa88c7.tar.zst nixlib-d0bcb41d2d5659c8e8cefa8477c8c7c060aa88c7.zip |
Merge pull request #27524 from therealpxc/arrow
pythonPackages.arrow: 0.7.0 -> 0.10.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/arrow/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 25 |
2 files changed, 30 insertions, 22 deletions
diff --git a/pkgs/development/python-modules/arrow/default.nix b/pkgs/development/python-modules/arrow/default.nix new file mode 100644 index 000000000000..a85987a95b16 --- /dev/null +++ b/pkgs/development/python-modules/arrow/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 104dd5354e7d..943b6e75baf6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -763,28 +763,7 @@ in { }; - arrow = buildPythonPackage rec { - name = "arrow-${version}"; - version = "0.7.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/a/arrow/${name}.tar.gz"; - sha256 = "0yx10dz3hp825fcq9w15zbp26v622npcjscb91da05zig8036lra"; - }; - - checkPhase = '' - nosetests - ''; - - 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"; @@ -14023,6 +14002,8 @@ in { substituteInPlace ./test/asizeof/test_asizeof.py --replace "self.assert_(not e" "#self.assert_(not e" ''; + doCheck = stdenv.hostPlatform.isLinux; + meta = { description = "Tool to measure, monitor and analyze memory behavior"; homepage = http://pythonhosted.org/Pympler/; |