Commit cd84730a authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python313Packages.aniso8601: refactor

- add changelog to meta
- update disabled
parent eeb2d389
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
{
  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 ];

  dependencies = [ python-dateutil ];

  nativeCheckInputs = [ pytestCheckHook ] ++ lib.optional (!isPy3k) mock;
  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 ];
  };
}