2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytz
|
|
|
|
, unittest2
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ciso8601";
|
2021-10-07 14:46:35 +00:00
|
|
|
version = "2.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "closeio";
|
|
|
|
repo = "ciso8601";
|
|
|
|
rev = "v${version}";
|
2021-10-07 14:46:35 +00:00
|
|
|
sha256 = "sha256-TqB1tQDgCkXu+QuzP6yBEH/xHxhhD/kGR2S0I8Osc5E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytz
|
2021-10-07 14:46:35 +00:00
|
|
|
] ++ lib.optional (isPy27) [
|
|
|
|
unittest2
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ciso8601" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fast ISO8601 date time parser for Python written in C";
|
|
|
|
homepage = "https://github.com/closeio/ciso8601";
|
|
|
|
license = licenses.mit;
|
2021-10-07 14:46:35 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|