a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
42 lines
787 B
Nix
42 lines
787 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, pytestCheckHook
|
|
, pytz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ciso8601";
|
|
version = "2.3.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "closeio";
|
|
repo = "ciso8601";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-qTpt91Wf3L6Jl7FU8sn9PvGMRd/cjhQ1mQvUaQeLFQU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytz
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests/tests.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "ciso8601" ];
|
|
|
|
meta = with lib; {
|
|
description = "Fast ISO8601 date time parser for Python written in C";
|
|
homepage = "https://github.com/closeio/ciso8601";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mic92 ];
|
|
};
|
|
}
|