Merge pull request #299956 from fabaff/agate-refactor

python312Packages.agate: refactor
This commit is contained in:
Fabian Affolter 2024-03-30 08:50:07 +01:00 committed by GitHub
commit f820d0621c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 45 additions and 21 deletions

View File

@ -7,30 +7,35 @@
, isodate
, leather
, lxml
, nose
, parsedatetime
, pyicu
, pynose
, python-slugify
, pytimeparse
, pythonOlder
, pytimeparse
, pytz
, setuptools
}:
buildPythonPackage rec {
pname = "agate";
version = "1.9.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "wireservice";
repo = pname;
repo = "agate";
rev = "refs/tags/${version}";
hash = "sha256-I7jvZA/m06kUuUcfglySaroDbJ5wbgiF2lb84EFPmpw=";
};
propagatedBuildInputs = [
build-system = [
setuptools
];
dependencies = [
babel
isodate
leather
@ -43,7 +48,7 @@ buildPythonPackage rec {
cssselect
glibcLocales
lxml
nose
pynose
pyicu
pytz
];

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 ];
};
}