Files
nixpkgs/pkgs/development/python-modules/fastnumbers/default.nix
T
Martin Weinelt 44075c9b55 python3Packages.fastnumbers: 5.1.0 -> 5.1.1
https://github.com/SethMMorton/fastnumbers/blob/5.1.1/CHANGELOG.md

This commit was automatically generated using update-python-libraries.
2026-02-01 16:43:50 +01:00

55 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
hypothesis,
numpy,
pytestCheckHook,
setuptools,
setuptools-scm,
typing-extensions,
}:
buildPythonPackage rec {
pname = "fastnumbers";
version = "5.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "SethMMorton";
repo = "fastnumbers";
tag = version;
hash = "sha256-7UjUkZPGsrtdQhgisI5IA37WvgGGiEXsey9NhATy064=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [ typing-extensions ];
# Tests fail due to numeric precision differences on ARM
# See https://github.com/SethMMorton/fastnumbers/issues/28
doCheck = !stdenv.hostPlatform.isAarch;
nativeCheckInputs = [
hypothesis
numpy
pytestCheckHook
];
pytestFlags = [ "--hypothesis-profile=standard" ];
pythonImportsCheck = [ "fastnumbers" ];
meta = {
description = "Python module for number conversion";
homepage = "https://github.com/SethMMorton/fastnumbers";
changelog = "https://github.com/SethMMorton/fastnumbers/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}