c507975013
Conflicts: pkgs/development/python-modules/yte/default.nix
42 lines
855 B
Nix
42 lines
855 B
Nix
{
|
|
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 = [ ];
|
|
};
|
|
}
|