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

38 lines
805 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
nose,
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 ];
# tests rely on nose
doCheck = pythonOlder "3.12";
nativeCheckInputs = [ nose ];
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 = with maintainers; [ ];
};
}