pythonPackages.arrow_1: init at 1.0.3
This is an alternative arrow package for the new major version one. The other package is still at 0.17 and bumping it will result in a huge amount of rebuilds. However, some packages are depending on the new release, e.g., watson.
This commit is contained in:
parent
c86f67bfb9
commit
95794c43d9
41
pkgs/development/python-modules/arrow/1.nix
Normal file
41
pkgs/development/python-modules/arrow/1.nix
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||||
|
, simplejson, typing-extensions, python-dateutil, pytz, pytest-mock, sphinx
|
||||||
|
, dateparser, pytestcov, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "arrow";
|
||||||
|
version = "1.0.3";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0793badh4hgbk2c5g70hmbl7n3d4g5d87bcflld0w9rjwy59r71r";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ python-dateutil ]
|
||||||
|
++ lib.optionals (!pythonOlder "3.8") [ typing-extensions ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
dateparser
|
||||||
|
pytestCheckHook
|
||||||
|
pytestcov
|
||||||
|
pytest-mock
|
||||||
|
pytz
|
||||||
|
simplejson
|
||||||
|
sphinx
|
||||||
|
];
|
||||||
|
|
||||||
|
# ParserError: Could not parse timezone expression "America/Nuuk"
|
||||||
|
disabledTests = [
|
||||||
|
"test_parse_tz_name_zzz"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python library for date manipulation";
|
||||||
|
homepage = "https://github.com/crsmithdev/arrow";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ thoughtpolice oxzi ];
|
||||||
|
};
|
||||||
|
}
|
@ -482,6 +482,8 @@ in {
|
|||||||
|
|
||||||
arrow = callPackage ../development/python-modules/arrow { };
|
arrow = callPackage ../development/python-modules/arrow { };
|
||||||
|
|
||||||
|
arrow_1 = callPackage ../development/python-modules/arrow/1.nix { };
|
||||||
|
|
||||||
arviz = callPackage ../development/python-modules/arviz { };
|
arviz = callPackage ../development/python-modules/arviz { };
|
||||||
|
|
||||||
arxiv2bib = callPackage ../development/python-modules/arxiv2bib { };
|
arxiv2bib = callPackage ../development/python-modules/arxiv2bib { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user