Files
nixpkgs/pkgs/development/python-modules/backports-datetime-fromisoformat/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# tests
pytz,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "backports-datetime-fromisoformat";
version = "2.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "movermeyer";
repo = "backports.datetime_fromisoformat";
tag = "v${version}";
hash = "sha256-G1JMHa7r8KEOuIopXNBsPxu7yopFF1YlL5GUEmfuxqQ=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
pytz
pytestCheckHook
];
disabledTestPaths = [
# ModuleNotFoundError: No module named 'developmental_release'
"release/test_developmental_release.py"
];
pythonImportsCheck = [ "backports.datetime_fromisoformat" ];
meta = {
changelog = "https://github.com/movermeyer/backports.datetime_fromisoformat/releases/tag/v${version}";
description = "Backport of Python 3.11's datetime.fromisoformat";
homepage = "https://github.com/movermeyer/backports.datetime_fromisoformat";
license = lib.licenses.mit;
maintainers = [ ];
};
}