python313Packages.aniso8601: refactor

- add changelog to meta
- update disabled
This commit is contained in:
Fabian Affolter
2025-01-10 08:58:34 +01:00
parent eeb2d389d3
commit cd84730ae6
@@ -1,33 +1,38 @@
{
lib,
buildPythonPackage,
python-dateutil,
fetchPypi,
isPy3k,
mock,
pytestCheckHook,
python-dateutil,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aniso8601";
version = "10.0.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchPypi {
inherit pname version;
hash = "sha256-/x0PwjRmiMYsAVFUcTasMOMiiW7YrzFu92AsR9qUJs8=";
};
propagatedBuildInputs = [ python-dateutil ];
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ] ++ lib.optional (!isPy3k) mock;
dependencies = [ python-dateutil ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "aniso8601" ];
meta = with lib; {
description = "Python Parser for ISO 8601 strings";
homepage = "https://bitbucket.org/nielsenb/aniso8601";
license = with licenses; [ bsd3 ];
changelog = "https://bitbucket.org/nielsenb/aniso8601/src/v${version}/CHANGELOG.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}