2020-03-18 15:45:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-12-02 02:15:44 +00:00
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
2020-03-18 15:45:39 +00:00
|
|
|
, pytz
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ciso8601";
|
2022-12-30 19:13:01 +00:00
|
|
|
version = "2.3.0";
|
2022-12-02 02:15:44 +00:00
|
|
|
format = "pyproject";
|
2020-03-18 15:45:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "closeio";
|
|
|
|
repo = "ciso8601";
|
2022-12-30 19:13:01 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-qTpt91Wf3L6Jl7FU8sn9PvGMRd/cjhQ1mQvUaQeLFQU=";
|
2020-03-18 15:45:39 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 02:15:44 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-02 02:15:44 +00:00
|
|
|
pytestCheckHook
|
2020-03-18 15:45:39 +00:00
|
|
|
pytz
|
2022-12-02 02:15:44 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"tests/tests.py"
|
2021-09-20 21:33:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ciso8601" ];
|
2020-03-18 15:45:39 +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-09-20 21:33:57 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2020-03-18 15:45:39 +00:00
|
|
|
};
|
|
|
|
}
|