Files
nixpkgs/pkgs/development/python-modules/parsedatetime/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
855 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "parsedatetime";
version = "2.6";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-TLNo+7GKC3Ix9NdhGRZUUcjS41lRRV3+6XxiqHsE1FU=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "tests/Test*.py" ];
disabledTests = [
# https://github.com/bear/parsedatetime/issues/263
"testDate3ConfusedHourAndYear"
# https://github.com/bear/parsedatetime/issues/215
"testFloat"
];
pythonImportsCheck = [ "parsedatetime" ];
meta = with lib; {
description = "Parse human-readable date/time text";
homepage = "https://github.com/bear/parsedatetime";
license = licenses.asl20;
maintainers = [ ];
};
}