Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / quantities / default.nix
blob0461c5bc83c8534dd95ab02cb97a3e990c35a264
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , numpy
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools
8 , setuptools-scm
9 }:
11 buildPythonPackage rec {
12   pname = "quantities";
13   version = "0.15.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.8";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-nqMeKg11F88k1UaxQUbe+SkmOZk6YWzKYbh173lrSys=";
21   };
23   nativeBuildInputs = [
24     setuptools
25     setuptools-scm
26   ];
28   propagatedBuildInputs = [
29     numpy
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   disabledTests = [
37     # test fails with numpy 1.24
38     "test_mul"
39   ];
41   pythonImportsCheck = [
42     "quantities"
43   ];
45   meta = with lib; {
46     description = "Quantities is designed to handle arithmetic and conversions of physical quantities";
47     homepage = "https://python-quantities.readthedocs.io/";
48     changelog = "https://github.com/python-quantities/python-quantities/blob/v${version}/CHANGES.txt";
49     license = licenses.bsd2;
50     maintainers = with maintainers; [ ];
51   };