python312Packages.pytimeparse: refactor

This commit is contained in:
Fabian Affolter 2024-03-29 11:12:10 +01:00
parent 3c9e0924c4
commit 53a578ca8c

View File

@ -1,21 +1,40 @@
{ lib, fetchPypi, buildPythonPackage, nose }:
{ lib
, buildPythonPackage
, fetchPypi
, pynose
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "pytimeparse";
version = "1.1.8";
format = "setuptools";
pname = "pytimeparse";
version = "1.1.8";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "e86136477be924d7e670646a98561957e8ca7308d44841e21f5ddea757556a0a";
};
disabled = pythonOlder "3.7";
nativeCheckInputs = [ nose ];
src = fetchPypi {
inherit pname version;
hash = "sha256-6GE2R3vpJNfmcGRqmFYZV+jKcwjUSEHiH13ep1dVago=";
};
meta = with lib; {
description = "A small Python library to parse various kinds of time expressions";
homepage = "https://github.com/wroberts/pytimeparse";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
build-system = [
setuptools
];
nativeCheckInputs = [
pynose
];
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; [ vrthra ];
};
}