Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pint / default.nix
blob9a9029aca06233ee1bd5bca6c8349dab7b077dea
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
6 # build-system
7 , setuptools
8 , setuptools-scm
10 # propagates
11 , typing-extensions
13 # tests
14 , pytestCheckHook
15 , pytest-subtests
16 , pytest-benchmark
17 , numpy
18 , matplotlib
19 , uncertainties
22 buildPythonPackage rec {
23   pname = "pint";
24   version = "0.23";
25   format = "pyproject";
27   disabled = pythonOlder "3.6";
29   src = fetchPypi {
30     inherit version;
31     pname = "Pint";
32     hash = "sha256-4VCbkWBtvFJSfGAKTvdP+sEv/3Boiv8g6QckCTRuybQ=";
33   };
35   nativeBuildInputs = [
36     setuptools
37     setuptools-scm
38   ];
40   propagatedBuildInputs = [
41     typing-extensions
42   ];
44   nativeCheckInputs = [
45     pytestCheckHook
46     pytest-subtests
47     pytest-benchmark
48     numpy
49     matplotlib
50     uncertainties
51   ];
53   pytestFlagsArray = [
54     "--benchmark-disable"
55   ];
57   preCheck = ''
58     export HOME=$(mktemp -d)
59   '';
61   disabledTests = [
62     # https://github.com/hgrecco/pint/issues/1898
63     "test_load_definitions_stage_2"
64     # pytest8 deprecation
65     "test_nonnumeric_magnitudes"
66   ];
68   meta = with lib; {
69     changelog = "https://github.com/hgrecco/pint/blob/${version}/CHANGES";
70     description = "Physical quantities module";
71     mainProgram = "pint-convert";
72     license = licenses.bsd3;
73     homepage = "https://github.com/hgrecco/pint/";
74     maintainers = with maintainers; [ doronbehar ];
75   };