depot/third_party/nixpkgs/pkgs/development/python-modules/strpdatetime/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

39 lines
911 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
textx,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "strpdatetime";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "RhetTbull";
repo = "strpdatetime";
rev = "v${version}";
hash = "sha256-eb3KJCFRkEt9KEP1gMQYuP50qXqItrexJhKvtJDHl9o=";
};
build-system = [ poetry-core ];
dependencies = [ textx ];
pythonRelaxDeps = [ "textx" ];
patches = [ ./fix-locale.patch ];
pythonImportsCheck = [ "strpdatetime" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Parse strings into Python datetime objects";
license = lib.licenses.psfl;
changelog = "https://github.com/RhetTbull/strpdatetime/blob/${src.rev}/CHANGELOG.md";
homepage = "https://github.com/RhetTbull/strpdatetime";
maintainers = with lib.maintainers; [ sigmanificient ];
};
}