mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
python312Packages.pytimeparse: refactor
This commit is contained in:
parent
3c9e0924c4
commit
53a578ca8c
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue