diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/arrow')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/arrow/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/arrow/default.nix b/nixpkgs/pkgs/development/python-modules/arrow/default.nix new file mode 100644 index 000000000000..0a8e7e6f4823 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/arrow/default.nix @@ -0,0 +1,31 @@ +{ stdenv, buildPythonPackage, fetchPypi +, nose, chai, simplejson, backports_functools_lru_cache +, dateutil, pytz +}: + +buildPythonPackage rec { + pname = "arrow"; + version = "0.13.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "6f54d9f016c0b7811fac9fb8c2c7fa7421d80c54dbdd75ffb12913c55db60b8a"; + }; + + checkPhase = '' + nosetests --cover-package=arrow + ''; + + checkInputs = [ nose chai simplejson pytz ]; + propagatedBuildInputs = [ dateutil backports_functools_lru_cache ]; + + postPatch = '' + substituteInPlace setup.py --replace "==1.2.1" "" + ''; + + meta = with stdenv.lib; { + description = "Python library for date manipulation"; + license = "apache"; + maintainers = with maintainers; [ thoughtpolice ]; + }; +} |