depot/third_party/nixpkgs/pkgs/development/python-modules/pytimeparse/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

36 lines
816 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pytimeparse";
version = "1.1.8";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-6GE2R3vpJNfmcGRqmFYZV+jKcwjUSEHiH13ep1dVago=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "pytimeparse/tests/testtimeparse.py" ];
pythonImportsCheck = [ "pytimeparse" ];
meta = with lib; {
description = "Library to parse various kinds of time expressions";
homepage = "https://github.com/wroberts/pytimeparse";
changelog = "https://github.com/wroberts/pytimeparse/releases/tag/${version}";
license = licenses.mit;
maintainers = [ ];
};
}