5557ff764c
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
52 lines
1,007 B
Nix
52 lines
1,007 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, numpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "quantities";
|
|
version = "0.14.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-7+r//AwDZPiRqTJyOc0SSWvMtVzQN6bRv0TecG9yKHc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# test fails with numpy 1.24
|
|
"test_mul"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"quantities"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Quantities is designed to handle arithmetic and conversions of physical quantities";
|
|
homepage = "https://python-quantities.readthedocs.io/";
|
|
changelog = "https://github.com/python-quantities/python-quantities/blob/v${version}/CHANGES.txt";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|