Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / fastnumbers / default.nix
blob69cdd4c3e37825d73874dc8272115d9f02da8aad
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchFromGitHub
5 , hypothesis
6 , numpy
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
10 , typing-extensions
13 buildPythonPackage rec {
14   pname = "fastnumbers";
15   version = "5.1.0";
16   format = "pyproject";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "SethMMorton";
22     repo = pname;
23     rev = "refs/tags/${version}";
24     hash = "sha256-TC9+xOvskABpChlrSJcHy6O7D7EnIKL6Ekt/vaLBX2E=";
25   };
27   nativeBuildInputs = [
28     setuptools
29   ];
31   propagatedBuildInputs = [
32     typing-extensions
33   ];
35   # Tests fail due to numeric precision differences on ARM
36   # See https://github.com/SethMMorton/fastnumbers/issues/28
37   doCheck = !stdenv.hostPlatform.isAarch;
39   nativeCheckInputs = [
40     hypothesis
41     numpy
42     pytestCheckHook
43   ];
45   pytestFlagsArray = [
46     "--hypothesis-profile=standard"
47   ];
49   pythonImportsCheck = [
50     "fastnumbers"
51   ];
53   meta = with lib; {
54     description = "Python module for number conversion";
55     homepage = "https://github.com/SethMMorton/fastnumbers";
56     changelog = "https://github.com/SethMMorton/fastnumbers/blob/${version}/CHANGELOG.md";
57     license = licenses.mit;
58     maintainers = with maintainers; [ fab ];
59   };