567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
845 B
Nix
41 lines
845 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
pytz,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ciso8601";
|
|
version = "2.3.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "closeio";
|
|
repo = "ciso8601";
|
|
tag = "v${version}";
|
|
hash = "sha256-oVnQ0vHhWs8spfOnJOgTJ6MAHcY8VGZHZ0E/T8JsKqE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytz
|
|
];
|
|
|
|
enabledTestPaths = [ "tests/tests.py" ];
|
|
|
|
pythonImportsCheck = [ "ciso8601" ];
|
|
|
|
meta = {
|
|
description = "Fast ISO8601 date time parser for Python written in C";
|
|
homepage = "https://github.com/closeio/ciso8601";
|
|
changelog = "https://github.com/closeio/ciso8601/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ mic92 ];
|
|
};
|
|
}
|